From: "Ludovic Courtès" <ludo@gnu.org>
To: 44741@debbugs.gnu.org
Subject: bug#44741: ‘copy-recursively’ #:keep-mtime? #t broken for directories
Date: Thu, 19 Nov 2020 22:40:08 +0100 [thread overview]
Message-ID: <87ima1gh53.fsf@gnu.org> (raw)
In-Reply-To: <87mtzdgvyq.fsf@inria.fr> ("Ludovic Courtès"'s message of "Thu, 19 Nov 2020 17:19:57 +0100")
Ludovic Courtès <ludo@gnu.org> skribis:
> When passing #:keep-mtime? #t to ‘copy-recursively’, the mtime of
> regular files is preserved, but the mtime of directories (and symlinks)
> is not.
>
> This is because ‘set-file-time’ is called in the ‘down’ procedure of
> ‘file-system-fold’, before the directory is populated.
Fixed by 201cbcac3e9c23cc28352fa9ece3e677e22cc12c (core-updates).
> ‘populate-store’ is affected by this bug, meaning that it creates stores
> where directories have “wrong” timestamps. In practice this is probably
> less likely to have undesirable side effects than regular files with
> wrong timestamps (think ‘make’, .go files, etc.)
In some cases, such as the initrd, the problem is harmless because
timestamps are reset anyway in the archive (for instance
‘write-cpio-archive’ does that.)
There might be problems in other cases, such as (gnu build image).
Ludo’.
prev parent reply other threads:[~2020-11-19 21:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 16:19 bug#44741: ‘copy-recursively’ #:keep-mtime? #t broken for directories Ludovic Courtès
2020-11-19 21:40 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ima1gh53.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=44741@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).