diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-02-27 16:35:46 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-02-27 16:42:19 +0100 |
commit | b008674e4616cd2596d8b02273deb52f8bcb7d6c (patch) | |
tree | 0bb7ce3786cb5812296d2e8d5ca2a4d058e33dc8 /src/libstore/local-store.hh | |
parent | 826dc0d07d3b1ea6669f4ba42f73d1d29fe49642 (diff) |
Refactoring: Split off the non-recursive canonicalisePathMetaData()
Also, change the file mode before changing the owner. This prevents a
slight time window in which a setuid binary would be setuid root.
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r-- | src/libstore/local-store.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index d3e1ca292..14a826b3a 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -309,7 +309,7 @@ private: in a setuid Nix installation. */ void canonicalisePathMetaData(const Path & path, uid_t fromUid); -void canonicalisePathMetaData(const Path & path, bool recurse, uid_t fromUid); +void canonicaliseTimestampAndPermissions(const Path & path); MakeError(PathInUse, Error); |