about summary refs log tree commit diff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-02-06T10·59+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-02-06T10·59+0000
commit49bafe1faf4eedf0f059740be4f99c700ee93fe7 (patch)
tree4a244ca54e78b4bf6bd66c08b156348b77f00165 /src/libutil
parent66e94d3275e9a0a549c28b7d0ad5f3f897e2fbf0 (diff)
* Use the profile pointed to by ~/.nix-profile if no --profile
  argument is specified.

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 5c8b7279c42d..3a6914cba149 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -101,7 +101,7 @@ bool pathExists(const Path & path)
 {
     int res;
     struct stat st;
-    res = stat(path.c_str(), &st);
+    res = lstat(path.c_str(), &st);
     if (!res) return true;
     if (errno != ENOENT)
         throw SysError(format("getting status of %1%") % path);