Bug 241836 - bsdtar: -u archive does not work as documented
Summary: bsdtar: -u archive does not work as documented
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.0-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-09 17:00 UTC by Helge Oldach
Modified: 2019-11-14 21:49 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helge Oldach 2019-11-09 17:00:05 UTC
bsdtar's -u option should append new entries only if they have a modification date newer than the corresponding already existing entry. However that does not seem to work:

# ls -la boot/loader.conf
-rw-r--r--  1 root  wheel  79 Oct  7 20:48 boot/loader.conf
# tar cvf test.tar boot/loader.conf
a boot/loader.conf
# tar uvf test.tar boot/loader.conf
a boot/loader.conf
# tar uvf test.tar boot/loader.conf
a boot/loader.conf
# tar uvf test.tar boot/loader.conf
a boot/loader.conf
# tar tvf test.tar boot/loader.conf
-rw-r--r--  0 root   wheel      79 Oct  7 20:48 boot/loader.conf
-rw-r--r--  0 root   wheel      79 Oct  7 20:48 boot/loader.conf
-rw-r--r--  0 root   wheel      79 Oct  7 20:48 boot/loader.conf
-rw-r--r--  0 root   wheel      79 Oct  7 20:48 boot/loader.conf
#