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

Diffstat (limited to 'src/libutil/util.cc')
-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 5c8b7279c4..3a6914cba1 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);