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:
parent
66e94d3275
commit
49bafe1faf
2 changed files with 12 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue