sin
9750071b97
Fix stupid GCC warning
...
tar.c:239:9: warning: missing braces around initializer [-Wmissing-braces]
I believe this is an unresolved bug in GCC.
2014-11-03 10:21:05 +00:00
Michael Forney
7ed4866556
tar: Implement -m flag
...
This changes the default behavior to adjust mtimes to what is present in
the file header.
2014-11-01 22:34:29 +00:00
Michael Forney
e1f87da43e
tar: Handle archives with the prefix field
...
Also, handle names and prefixes that fill the entire field (and have no
NUL byte) by using a precision specifier.
2014-11-01 22:34:19 +00:00
Michael Forney
0e8a8c9426
tar: Support typeflag '\0' when extracting
...
POSIX recommends that "For backwards-compatibility, a typeflag value of
binary zero ( '\0' ) should be recognized as meaning a regular file when
extracting files from the archive".
2014-11-01 22:34:08 +00:00
Michael Forney
453ce96d44
tar: Don't crash when get{pw,gr}uid fails
2014-11-01 22:33:55 +00:00
sin
0c5b7b9155
Stop using EXIT_{SUCCESS,FAILURE}
2014-10-02 23:46:59 +01:00
Hiltjo Posthuma
953ebf3573
code style
...
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-06-01 18:02:30 +01:00
sin
e37e2782a9
Only use major()/minor() if they are available in tar(1)
...
Otherwise silently ignore them in the archive case. This is the
same in principle as what we do in the unarchive case.
2014-01-30 16:17:25 +00:00
sin
0a7791a25c
Use recurse() in tar(1) instead of ftw(3)
2014-01-30 14:55:38 +00:00
sin
c83aef2cda
Use preprocessor conditionals to check if makedev() is present
...
makedev() is not portable and is typically implemented as a
macro. If it exists use it, otherwise silently ignore character
and block devices.
2014-01-28 17:22:48 +00:00
sin
b5a511dacf
Exit with EXIT_SUCCESS/EXIT_FAILURE instead of 0 and 1
...
Fixed for consistency purposes.
2013-10-07 16:44:22 +01:00
David Galos
b5b7db4009
tar: Check inode AND dev before ignoring a file. Thanks, Lars Lindqvist!
2013-07-28 12:12:03 -04:00
Roberto E. Vargas Caballero
f636ac791b
Avoid infinite loop in tar
...
When the tar file is written in one directory archived by tar
the function archive enters in an infinite loop due to de
tar file written. This patch avoid this case checking the
inode of the tar file before of adding it to the archive.
2013-07-20 13:18:39 -04:00
David Galos
9f8deb4b23
Tar compiles on BSD, thanks Roberto E. Vargas Caballero. Also remove tons of trailing whitespace.
2013-07-20 01:27:42 -04:00
sin
43c4213631
Remove trailing whitespace
2013-07-20 00:56:04 -04:00
David Galos
c5f10c4b06
Fixing idiotic mistake in tar
2013-07-18 11:52:01 -04:00
David Galos
2c75eb98d9
Adding tar.
2013-07-18 11:15:35 -04:00