about summary refs log tree commit diff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-08-04T09·25+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-08-04T09·25+0000
commite3a50f7e25c552a78974fae684484d27a36b7c60 (patch)
tree8637f3284a2adf65fdb82e974177873c3b9c19f4 /src/libutil
parent18ebd7b03071ebbb38cea9eca39a5e7e2e0cf2ea (diff)
* Creating a file nix-support/no-scan in the output path of a
  derivation disables scanning for dependencies.  Use at your own
  risk.  This is a quick hack to speed up UML image generation (image
  are very big, say 1 GB).

  It would be better if the scanner were faster, and didn't read the
  whole file into memory.

Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 43ec2b9f3be8..2a2dffb25d6f 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -115,7 +115,7 @@ bool pathExists(const Path & path)
     struct stat st;
     res = lstat(path.c_str(), &st);
     if (!res) return true;
-    if (errno != ENOENT)
+    if (errno != ENOENT && errno != ENOTDIR)
         throw SysError(format("getting status of %1%") % path);
     return false;
 }