aboutsummaryrefslogtreecommitdiff
path: root/libexec/nuageinit/tests/update_sshd_config.lua
Commit message (Collapse)AuthorAgeFilesLines
* nuageinit: fix update_sshd_config crash when file does not existBaptiste Daroussin2026-06-041-0/+7
| | | | | | | | | | | | Previously update_sshd_config() would assert-fail if sshd_config did not exist. Now it creates a new file with the given key/value. Also replace the fragile simultaneous r+ + temp file approach with a cleaner read-then-write pattern: read all lines into memory, modify as needed, then write to a temp file and rename. All assert() calls replaced with proper error handling via warnmsg(). Add test case for missing file creation.
* nuageinit: add update_sshd_config testsBaptiste Daroussin2026-05-101-0/+73