1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-01 08:28:00 +02:00

* Input sources should be in the set of all referenceable paths too.

This commit is contained in:
Eelco Dolstra 2005-02-11 16:03:47 +00:00
parent 3a99616968
commit 80870d9291
2 changed files with 6 additions and 6 deletions

View file

@ -34,6 +34,8 @@ void checkPath(const string & path,
{
checkInterrupt();
debug(format("checking `%1%'") % path);
struct stat st;
if (lstat(path.c_str(), &st))
throw SysError(format("getting attributes of path `%1%'") % path);
@ -48,8 +50,6 @@ void checkPath(const string & path,
else if (S_ISREG(st.st_mode)) {
debug(format("checking `%1%'") % path);
AutoCloseFD fd = open(path.c_str(), O_RDONLY);
if (fd == -1) throw SysError(format("opening file `%1%'") % path);