database: 'reset-timestamps' now correctly handles symlinks.
* guix/store/database.scm (reset-timestamps): Use 'utime' with AT_SYMLINK_NOFOLLOW for symlinks.
This commit is contained in:
		
							parent
							
								
									25c7ff6a3e
								
							
						
					
					
						commit
						e5e5119855
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -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))))) | ||||
|  |  | |||
		Reference in a new issue