1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

* Use the profile pointed to by ~/.nix-profile if no --profile

argument is specified.
This commit is contained in:
Eelco Dolstra 2004-02-06 10:59:06 +00:00
parent 66e94d3275
commit 49bafe1faf
2 changed files with 12 additions and 7 deletions

View file

@ -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);