about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libstore/build.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index c80b3dfe9706..c953707a5126 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1400,6 +1400,7 @@ void DerivationGoal::computeClosure()
                     % path % algo % printHash(h) % printHash(h2));
         }
 
+#ifndef __CYGWIN__
         /* Check that the output is not group or world writable, as
            that means that someone else can have interfered with the
            build.  Also, the output should be owned by the build
@@ -1407,6 +1408,7 @@ void DerivationGoal::computeClosure()
         if ((st.st_mode & (S_IWGRP | S_IWOTH)) ||
             (buildUser.getUID() != 0 && st.st_uid != buildUser.getUID()))
             throw Error(format("suspicious ownership or permission on `%1%'; rejecting this build output") % path);
+#endif
 
         /* Get rid of all weird permissions. */
 	canonicalisePathMetaData(path);