[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/10: database: 'reset-timestamps' now correctly handles symlinks.
From: |
Ludovic Courtès |
Subject: |
03/10: database: 'reset-timestamps' now correctly handles symlinks. |
Date: |
Tue, 3 Jul 2018 11:50:14 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit e5e5119855b0269e8e6507b90c7f4d7df5118fc8
Author: Ludovic Courtès <address@hidden>
Date: Tue Jul 3 11:02:22 2018 +0200
database: 'reset-timestamps' now correctly handles symlinks.
* guix/store/database.scm (reset-timestamps): Use 'utime' with
AT_SYMLINK_NOFOLLOW for symlinks.
---
guix/store/database.scm | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/guix/store/database.scm b/guix/store/database.scm
index 05b2ba6..8f35b63 100644
--- a/guix/store/database.scm
+++ b/guix/store/database.scm
@@ -209,9 +209,7 @@ it's a directory. While at it, canonicalize file
permissions."
(type type))))))
(scandir* parent))))
((symlink)
- ;; FIXME: Implement bindings for 'futime' to reset the timestamps on
- ;; symlinks.
- #f)
+ (utime file 0 0 0 0 AT_SYMLINK_NOFOLLOW))
(else
(chmod file (if (executable-file? file) #o555 #o444))
(utime file 0 0 0 0)))))
- branch master updated (13f5eb3 -> a51cf16), Ludovic Courtès, 2018/07/03
- 02/10: syscalls: Define AT_SYMLINK_NOFOLLOW et al., Ludovic Courtès, 2018/07/03
- 01/10: deduplication: Remove 'false-if-system-error', now unused., Ludovic Courtès, 2018/07/03
- 03/10: database: 'reset-timestamps' now correctly handles symlinks.,
Ludovic Courtès <=
- 04/10: ui: Report file names in 'system-error' exceptions from 'delete-file'., Ludovic Courtès, 2018/07/03
- 05/10: guix system: Make 'init' idempotent again., Ludovic Courtès, 2018/07/03
- 07/10: tests: basic: Wait for /var/run/shepherd/socket to be ready., Ludovic Courtès, 2018/07/03
- 06/10: Revert "packages: Optimize 'package-transitive-supported-systems'.", Ludovic Courtès, 2018/07/03
- 10/10: gnu: Update stellarium to 0.18.0., Ludovic Courtès, 2018/07/03
- 08/10: gnu: Add pocl., Ludovic Courtès, 2018/07/03
- 09/10: gnu: emacs-helm-system-packages: Update to 1.10.0., Ludovic Courtès, 2018/07/03