Package: tar
Version: 1.28-2.1
Severity: minor
Hello,
I have little trouble with the manpage or help output. It mentions:
--mtime=DATE-OR-FILE - does this mean that I can specify a filename
which it would retrieve the reference mtime from (like some other GNU
commands)? What is date, every format that the "date" command accepts?
Let's try:
$ tar c --mtime=0 dbgen/ | tar -t -v
-> looks like 0 was interpreted as 00:00 tonight
On IRC it was mentioned to use @ as prefix to a unix timestamp... ok, it
does the trick and we get the year 1970.
But @ is not documented in the manpage!
Ok, what about a reference file?
$ tar c --mtime=README dbgen/ | tar t -v
tar: Substituting -9223372036854775807 for unknown date format ‘README’
drwxr-xr-x user/user 0 -9223372036854775808 dbgen/
...
That looks utterly wrong. It's either buggy or I just don't know how to
use it and there is no documentation AFAICS.
Regards,
Eduard.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.3.2+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)
Versions of packages tar depends on:
ii libacl1 2.2.52-2
ii libc6 2.21-4
ii libselinux1 2.4-3
tar recommends no packages.
Versions of packages tar suggests:
ii bzip2 1.0.6-8
pn ncompress <none>
pn tar-scripts <none>
ii xz-utils 5.1.1alpha+20120614-2.1
-- no debconf information
--
Früher rasierte man sich, wenn man Beethoven hören wollte, jetzt hört
man Beethoven, wenn man sich rasieren will.
-- Peter Bamm