about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-02-28T18·55+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-02-28T18·55+0100
commit8057a192e3254c936fa0bcb5715e09600a28e8f8 (patch)
tree89c03c500f32700ad043f246a763057b7c91cb6d /src
parent9fa1bee575886b76c3a23af37f9f3ce2ce52733c (diff)
Handle systems without lutimes() or lchown()
Diffstat (limited to 'src')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 6154a6382bb0..4b8203efe374 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -536,7 +536,7 @@ static void canonicalisePathMetaData_(const Path & path, uid_t fromUid, InodesSe
         if (inodesSeen.find(Inode(st.st_dev, st.st_ino)) == inodesSeen.end())
             throw BuildError(format("invalid ownership on file `%1%'") % path);
         mode_t mode = st.st_mode & ~S_IFMT;
-        assert(st.st_uid == geteuid() && (S_ISLNK(st.st_mode) ? 1 : mode == 0444 || mode == 0555) && st.st_mtime == mtimeStore);
+        assert(S_ISLNK(st.st_mode) || (st.st_uid == geteuid() && (mode == 0444 || mode == 0555) && st.st_mtime == mtimeStore));
         return;
     }