mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
* utime() follows symlinks, so don't change the mtime if the file is a
symlink.
This commit is contained in:
parent
eee6fe478e
commit
13f77276d1
@ -334,7 +334,6 @@ void canonicalisePathMetaData(const Path & path)
|
||||
throw SysError(format("changing owner/group of `%1%' to %2%/%3%")
|
||||
% path % getuid() % getgid());
|
||||
}
|
||||
}
|
||||
|
||||
if (st.st_mtime != 0) {
|
||||
struct utimbuf utimbuf;
|
||||
@ -344,6 +343,8 @@ void canonicalisePathMetaData(const Path & path)
|
||||
throw SysError(format("changing modification time of `%1%'") % path);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (S_ISDIR(st.st_mode)) {
|
||||
Strings names = readDirectory(path);
|
||||
for (Strings::iterator i = names.begin(); i != names.end(); ++i)
|
||||
|
Loading…
Reference in New Issue
Block a user