mtree(8) doesn't adjust timestamps of broken symbolic links
Jim Long
freebsd-questions at umpquanet.com
Fri Apr 23 19:06:44 UTC 2021
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
More information about the freebsd-questions
mailing list