From 80870d9291813f265a6e078c92aa535ef0b70a47 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 11 Feb 2005 16:03:47 +0000 Subject: * Input sources should be in the set of all referenceable paths too. --- src/libstore/references.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstore/references.cc') diff --git a/src/libstore/references.cc b/src/libstore/references.cc index 5ceae6427617..843aed97fc3b 100644 --- a/src/libstore/references.cc +++ b/src/libstore/references.cc @@ -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); -- cgit 1.4.1