From 8057a192e3254c936fa0bcb5715e09600a28e8f8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 28 Feb 2013 19:55:09 +0100 Subject: [PATCH] Handle systems without lutimes() or lchown() --- src/libstore/local-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 6154a6382..4b8203efe 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; }