Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bug fixes: | Joseph Hunkeler | 2021-06-20 | 1 | -13/+20 |
| | | | | | * Allocate enough memory to handle a long host group name * Move "already_inside" check before host_group parsing | ||||
* | Remove messages related to parsing configuration files | Joseph Hunkeler | 2021-06-17 | 1 | -3/+2 |
| | | | | * Remove word "new" from creation message | ||||
* | Fix host_group parser (#4) | Joseph Hunkeler | 2021-06-16 | 1 | -29/+56 |
| | | | | | * Do not segfault on invalid input * Report syntax errors * Ignore comments and inline comments | ||||
* | Add shell init scripts and host_groups (#3) | Joseph Hunkeler | 2021-06-16 | 1 | -68/+206 |
| | | | | | | | | | | | | | | | | | | | * Add shell init scripts (templates) * Check for additional symbols * Handle missing PATH_MAX declaration (e.g. Ubuntu) * Install shell scripts into $PREFIX/share/init * Replace _INIT declaration with HOST_GROUP * Add scripts_dir and config_host_group struct elements to global 'multihome' * Fix count_substrings() returning wrong type * Refactor RSYNC_BIN to MULTIHOME_RSYNC_BIN * get_timestamp() no longer accepts a buffer as an argument * write_init_script() now uses scripts in $PREFIX/share/init/ to generate output files * Add user_host_group(), which allows grouping systems to a single home directory by way of regex pattern matching * strip_domainname() returns modified pointer, not new storage * Fix strip_domainname test * Create configuration directory if it does not exist * CI needs to install multihome and use the correct script * Always resolve argv[0] to absolute path | ||||
* | Refactor headers and relocate tests | Joseph Hunkeler | 2020-09-11 | 1 | -77/+19 |
| | |||||
* | Add strip_domainname to test_main | Joseph Hunkeler | 2020-09-04 | 1 | -2/+16 |
| | |||||
* | Add get_timestamp function; Find program handles paths to files too; | Joseph Hunkeler | 2020-09-03 | 1 | -11/+40 |
| | |||||
* | Clean up find_program | Joseph Hunkeler | 2020-09-03 | 1 | -3/+5 |
| | |||||
* | find_program() returns the absolute path if it begins with "./" | Joseph Hunkeler | 2020-09-03 | 1 | -9/+19 |
| | |||||
* | Add strip_domainname function; Add missing @param for copy function | Joseph Hunkeler | 2020-09-03 | 1 | -10/+26 |
| | |||||
* | Improvements: | Joseph Hunkeler | 2020-09-02 | 1 | -21/+38 |
| | | | | | | | | * Added field_type and field_where to user_transfer() to make visually inspecting code easier * Applied new MULTIHOME_* defines * Generate blank transfer config during first-run * Change wording "inject" -> "pull" * Show path to transfer config | ||||
* | Remove newline | Joseph Hunkeler | 2020-09-01 | 1 | -1/+0 |
| | |||||
* | Use HOME_OLD set by the init script for update mode instead. More robust | Joseph Hunkeler | 2020-09-01 | 1 | -10/+7 |
| | |||||
* | set new path to old path in update mode | Joseph Hunkeler | 2020-09-01 | 1 | -1/+8 |
| | |||||
* | Actually ignore empty lines | Joseph Hunkeler | 2020-09-01 | 1 | -1/+1 |
| | |||||
* | Implement update mode | Joseph Hunkeler | 2020-09-01 | 1 | -10/+33 |
| | |||||
* | Get basename from program entrypoint instead of hardcoding the program name | Joseph Hunkeler | 2020-09-01 | 1 | -2/+6 |
| | |||||
* | Implement find_program | Joseph Hunkeler | 2020-09-01 | 1 | -9/+52 |
| | |||||
* | And populate buf otherwise | Joseph Hunkeler | 2020-09-01 | 1 | -0/+2 |
| | |||||
* | Only call realpath when path is relative | Joseph Hunkeler | 2020-09-01 | 1 | -3/+5 |
| | |||||
* | Optimize abspath generation | Joseph Hunkeler | 2020-09-01 | 1 | -6/+1 |
| | |||||
* | Fix NULL hostname | Joseph Hunkeler | 2020-08-31 | 1 | -1/+1 |
| | |||||
* | Fix empty multihome.config_transfer path | Joseph Hunkeler | 2020-08-31 | 1 | -1/+20 |
| | |||||
* | Comment init script | Joseph Hunkeler | 2020-08-31 | 1 | -1/+5 |
| | |||||
* | Wrap test code in #ifdef/#endif | Joseph Hunkeler | 2020-08-31 | 1 | -1/+10 |
| | |||||
* | Disable line buffering; Implement basic tests; Fix mkdirs bug: do not ↵ | Joseph Hunkeler | 2020-08-31 | 1 | -18/+106 |
| | | | | prepend "/" to path | ||||
* | Allow change to home root | Joseph Hunkeler | 2020-08-31 | 1 | -3/+13 |
| | |||||
* | Handle some possible home directory errors. Fix topdir symlink to point to ↵ | Joseph Hunkeler | 2020-08-30 | 1 | -3/+17 |
| | | | | the correct place. | ||||
* | Refuse to nest | Joseph Hunkeler | 2020-08-30 | 1 | -0/+7 |
| | |||||
* | Fix accidental text replacement | Joseph Hunkeler | 2020-08-30 | 1 | -3/+3 |
| | |||||
* | Close transfer config | Joseph Hunkeler | 2020-08-30 | 1 | -0/+1 |
| | |||||
* | Use global tranfer config | Joseph Hunkeler | 2020-08-30 | 1 | -6/+4 |
| | |||||
* | Update multihome.c | Joseph Hunkeler | 2020-08-30 | 1 | -4/+1 |
| | |||||
* | Initial commit | Joseph Hunkeler | 2020-08-30 | 1 | -0/+501 |