Commit Graph
97 Commits
Author SHA1 Message Date
Riyyi 5ec1272172 Manager: Set process group ID before user ID
setegid() needs to be called before seteuid(); otherwise, the setegid()
call will fail because the process no longer has root privileges.
2022-01-24 01:03:30 +01:00
Riyyi 7856e9017c Test: Add dotfile test cases 2022-01-24 01:03:30 +01:00
Riyyi 8c8eb01d18 CMake: Compile all sources for the test suite binary 2022-01-24 01:03:30 +01:00
Riyyi 5d5c37a496 Manager: Detect system files correctly during add and pull operations 2022-01-24 00:29:50 +01:00
Riyyi d7ff637fd0 Manager: Convert dotfile class to singleton 2022-01-24 00:29:50 +01:00
Riyyi 54dc515def Util: Make file append const reference 2022-01-24 00:29:50 +01:00
Riyyi 817b898b28 Test: Fix memory leak when adding a test case 2022-01-24 00:29:50 +01:00
Riyyi a8e73063ee Util: Add file create function 2022-01-24 00:29:50 +01:00
Riyyi abbf764a3e Manager: Add feature to selectively comment and uncomment 2022-01-24 00:29:50 +01:00
Riyyi 7f8ca38462 Manager: Use constructor over auto 2022-01-24 00:29:50 +01:00
Riyyi 7be7440840 Manager: Deduplicate code between pulling and pushing functions 2022-01-24 00:29:50 +01:00
Riyyi 80642793a6 Manager: Fix directory creation in the dotfile directory 2022-01-24 00:29:50 +01:00
Riyyi bf02122d2d Manager: Cut off working directory from error message 2022-01-24 00:29:50 +01:00
Riyyi 50c859fd34 Manager: Fix system target detection 2022-01-24 00:29:50 +01:00
Riyyi 5cca591448 Manager: Rename paths -> indices where applicable 2022-01-24 00:29:50 +01:00
Riyyi 7004ce2bb0 CMake: Pass the C++ language standard to the compiler 2022-01-24 00:29:50 +01:00
Riyyi bc3fc6c345 Manager: Put machine specific values in a separate class 2022-01-24 00:29:50 +01:00
Riyyi 26826bc077 Manager: Update main for current functionality 2022-01-09 15:49:21 +01:00
Riyyi aa702b79b9 Manager: Move package list grabbing to separate function 2022-01-09 15:47:03 +01:00
Riyyi ac862982da Doc: Update readme 2022-01-09 15:45:36 +01:00
Riyyi d9f95f5332 Manager: Add fixme to user getlogin() 2022-01-09 15:43:13 +01:00
Riyyi 2af81120c3 Manager: Implement convenience functions in Package 2021-10-02 17:28:44 +02:00
Riyyi a04b5232f4 Util: Add delimiter support to the cut function 2021-10-02 12:14:14 +02:00
Riyyi 22082a515b Util: Add convenience functions to save external process creation 2021-09-26 00:14:43 +02:00
Riyyi be552db0fb Manager: Start working on package tracking 2021-09-25 17:16:33 +02:00
Riyyi 418b453507 Util: Add file class 2021-09-25 16:55:37 +02:00
Riyyi ee451671cd Util: Fix reading of file descriptors longer than 4096 bytes 2021-09-25 11:29:49 +02:00
Riyyi 9ff368e511 Manager: Remove Dotfile from namespace 2021-09-24 11:08:50 +02:00
Riyyi 5226e6a24a Manager: Add file pushing function 2021-09-23 20:09:12 +02:00
Riyyi 34e0dc72ec Manager: Don't need to do a full capture 2021-09-23 20:01:46 +02:00
Riyyi e6842f58d8 Manager: Remove non-related parameter from callback 2021-09-23 20:00:18 +02:00
Riyyi c14db5bd46 Manager: Rename files to paths 2021-09-23 19:57:17 +02:00
Riyyi 5f2bbce080 Manager: Add file pulling function 2021-09-23 19:54:32 +02:00
Riyyi f3ed90e499 Manager: Rename targets to paths 2021-09-23 17:36:04 +02:00
Riyyi cb592b8d2c Manager: Make file syncing logic generic 2021-09-23 17:35:13 +02:00
Riyyi 58bf5b98ee Manager: Add function to check if file is system type 2021-09-23 17:24:17 +02:00
Riyyi e7d1515fca Manager: Add index to dotfile iteration loop 2021-09-23 16:01:19 +02:00
Riyyi e4d90bf281 Manager: Make the callable functions non-static 2021-09-23 00:40:02 +02:00
Riyyi 7920b7280e Manager: Add generic dotfile looping 2021-09-23 00:38:48 +02:00
Riyyi de4b96bd47 Manager: Add Dotfile adding function 2021-09-22 00:26:23 +02:00
Riyyi f8ccfe79b8 Manager: Add target filtering to Dotfile::list() 2021-09-20 18:18:31 +02:00
Riyyi 1893f08ea8 Manager: Start working on dotfile class 2021-09-20 01:00:14 +02:00
Riyyi 12dd000f0b Util: Pass string by const reference 2021-09-19 11:46:19 +02:00
Riyyi 6293e2aaf7 Project: Release under MIT license 2021-09-18 12:40:00 +02:00
Riyyi 875a49332c Test: Add Shell and System test cases 2021-09-18 10:33:22 +02:00
Riyyi cf1da45b78 Test: Update macro output formatting 2021-09-18 09:57:25 +02:00
Riyyi cc7252f94d Util: Change operators to the evaluated order 2021-09-17 19:13:57 +02:00
Riyyi 26ceceeba5 Util: Change System to direct-list-initialization 2021-09-17 13:02:29 +02:00
Riyyi 9926849640 Util: Add class Shell for executing more basic OS shell commands 2021-09-17 12:52:36 +02:00
Riyyi 496e3e4c88 Util: Do not modify the output result 2021-09-17 01:41:21 +02:00