Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Apr 2021 12:06:34 -0700
From:      Jim Long <freebsd-questions@umpquanet.com>
To:        freebsd-questions@freebsd.org
Subject:   mtree(8) doesn't adjust timestamps of broken symbolic links
Message-ID:  <20210423190634.GA29552@g5.umpquanet.com>

next in thread | raw e-mail | index | archive | help
This feels like a bug to me, given that -P is documented as:

     -P                 Don't follow symbolic links in the file hierarchy,
                        instead consider the symbolic link itself in any
                        comparisons.  This is the default.

$ file a/bar b/bar
a/bar: broken symbolic link to garb
b/bar: broken symbolic link to garb
$ ls -l a/bar b/bar
lrwx--x---  1 jim  wheel  4 Apr 23 11:35 a/bar@ -> garb
lrwx--x---  1 jim  wheel  4 Apr 23 11:36 b/bar@ -> garb
$ mtree -k time -Pcp a | mtree -Ptp b
bar:    modification time (Fri Apr 23 11:35:06 2021, Fri Apr 23 11:36:28 2021, not modified: No such file or directory)
$ ls -l a/bar b/bar
lrwx--x---  1 jim  wheel  4 Apr 23 11:35 a/bar@ -> garb
lrwx--x---  1 jim  wheel  4 Apr 23 11:36 b/bar@ -> garb


Is a PR indicated on this?


Thank you,

Jim






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210423190634.GA29552>