Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
File Stream API now unlinks before open with
O_EXCL
The File Stream API now unlinks the destination file (i.e., `<FILENAME>.cfnew`) before opening it with the `O_EXCL` flag. Previously the agent would fail if the destination file already exists. Fortunately, the File Stream API unlinks this file afterwards, both on success and error, causing the agent to recover. Both the `cf-net get <FILENAME>` command and the `copy_from` attribute were affected. Ticket: None Changelog: Commit Signed-off-by: Lars Erik Wik <[email protected]>
- Loading branch information