mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 09:49:36 +01:00
inline the usage of nix::renameFile
use `std::filesystem::rename` everywhere and remove `nix::renameFile`
This commit is contained in:
parent
87ab3c0ea4
commit
4537663740
8 changed files with 11 additions and 18 deletions
|
|
@ -12,7 +12,7 @@ void IndirectRootStore::makeSymlink(const Path & link, const Path & target)
|
|||
createSymlink(target, tempLink);
|
||||
|
||||
/* Atomically replace the old one. */
|
||||
renameFile(tempLink, link);
|
||||
std::filesystem::rename(tempLink, link);
|
||||
}
|
||||
|
||||
Path IndirectRootStore::addPermRoot(const StorePath & storePath, const Path & _gcRoot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue