You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nix-store --register-validity --reregister modifies mtime of symlinks in store #146
It seems the logic in canonicaliseTimestampAndPermissions in local-store.cc is a bit off. In the lutimes case the mtime is set before the check for symlink is done, but in the utimes case, the path symlink check is done first and only if the path is not a symlink, the mtime is set.
I discovered this on a system with a read-only store where I re-registered some already valid paths. The operation failed because nix-store tried to set mtime on the symlinks in the store (the symlinks didn't have 1970-01-01 mtime).
The check for symlinks is only because utimes() doesn't work on symlinks. On a system with lutimes(), if the mtime is incorrect, we want to use it unconditionally.
Activity
edolstra commentedon Feb 26, 2014
The check for symlinks is only because utimes() doesn't work on symlinks. On a system with lutimes(), if the mtime is incorrect, we want to use it unconditionally.
Adds optional dependencies to features when they are enabled indirectly.
Merge pull request NixOS#146 from DeterminateSystems/sync-2.30.1
doc/inventory: consolidate four-pass review into the catalog