Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address review comments for manangeLinesInFile
- Move the `COPYFILE_EXCL` constants into the call site, so it is more obvious that we would throw if the files already exist. - When reading existing contents, read from the temporary or backup files we created, to avoid issues where a second process may modify the file away from what we expect. This still leaves a window where they could modify the file just before we copy, but in that case there isn't any reasonable expectation that we could deal with it. - Update an error message to be clearer. Signed-off-by: Mark Yen <mark.yen@suse.com>
- Loading branch information