diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-02-27T15·35+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-02-27T15·42+0100 |
commit | b008674e4616cd2596d8b02273deb52f8bcb7d6c (patch) | |
tree | 0bb7ce3786cb5812296d2e8d5ca2a4d058e33dc8 /src/libstore/optimise-store.cc | |
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/optimise-store.cc')
-rw-r--r-- | src/libstore/optimise-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/optimise-store.cc b/src/libstore/optimise-store.cc index 75f2d7d6cc40..d833f3aa05b5 100644 --- a/src/libstore/optimise-store.cc +++ b/src/libstore/optimise-store.cc @@ -32,7 +32,7 @@ struct MakeReadOnly { try { /* This will make the path read-only. */ - if (path != "") canonicalisePathMetaData(path, false, -1); + if (path != "") canonicaliseTimestampAndPermissions(path); } catch (...) { ignoreException(); } |