Commit Graph

35 Commits

Author SHA1 Message Date
Paul Eggert
617f136b46 (decode_options): Set newer_time_option to TYPE_MINIMUM, so that
negative timestamps are handled correctly.
Replace invocations of xstrtol and xstrtoul with xstrtoumax, for
uniformity (and so that we don't need to have the other fns).
(main): Remove call to init_total_written; no longer needed.
1999-07-17 01:49:35 +00:00
Paul Eggert
9e15f49bd0 (usage): tar-bugs@gnu.org -> bug-tar@gnu.org 1999-07-14 15:13:25 +00:00
Paul Eggert
07f380748c (decode_options): Initialize `excluded'.
Use new add_exclude_file and add_exclude functions.
1999-07-08 03:45:21 +00:00
Paul Eggert
a8c32ecff2 Include signal.h.
(SIGCHLD): Define to SIGCLD if SIGCLD is defined but SIGCHLD is not.
(main): Ensure SIGCHLD is not ignored, so that we can fork and wait.
1999-07-03 00:00:19 +00:00
Paul Eggert
6f1783ad43 (BACKUP_OPTION, DELETE_OPTION, EXCLUDE_OPTION, GROUP_OPTION,
MODE_OPTION, NEWER_MTIME_OPTION, NO_RECURSE_OPTION, NULL_OPTION,
OWNER_OPTION, POSIX_OPTION, PRESERVE_OPTION, RECORD_SIZE_OPTION,
RSH_COMMAND_OPTION, SUFFIX_OPTION, USE_COMPRESS_PROGRAM_OPTION,
VOLNO_FILE_OPTION, OBSOLETE_ABSOLUTE_NAMES, OBSOLETE_BLOCK_COMPRESS,
OBSOLETE_BLOCKING_FACTOR, OBSOLETE_BLOCK_NUMBER,
OBSOLETE_READ_FULL_RECORDS, OBSOLETE_TOUCH, OBSOLETE_VERSION_CONTROL):
Make sure they can't be valid chars, so they don't overlap with char codes.
Use an enum instead of a lot of #defines.
(long_options, main, usage): Remove --ending-file option.
(OPTION_STRING): Remove -E.
1999-07-02 21:33:51 +00:00
Paul Eggert
6290150c47 Fix copyright notice. 1999-07-01 21:01:44 +00:00
Paul Eggert
ec424c77a9 Move include of backupfile.h to common.h. 1999-06-16 12:44:52 +00:00
Paul Eggert
72adbbda36 (backup_type): Remove decl; backupfile.h now has it.
(intconv): Remove; use xstrto* fns instead.
("xstrtol.h"): Include.
(check_decimal): Remove.
(long_options, usage, OPTION_STRING, decode_options):
Remove -y, --bzip2, --unbzip2.
(decode_options): Use xget_version instead of get_version.
Check for overflow with -b and -L and RECORD_SIZE_OPTION.
Replace invocations of check_decimal  with xstrtoumax.
1999-06-16 11:14:15 +00:00
Paul Eggert
f561403bad (long_options, usage): Prefer --unbzip2 to --bunzip2. 1999-02-20 06:04:28 +00:00
Paul Eggert
16368da655 Update copyright. 1999-02-01 08:10:25 +00:00
Paul Eggert
6ccb513321 (long_options, usage, OPTION_STRING, decode_options):
Add -y or --bzip2 or --bunzip2 option.
1999-02-01 07:51:19 +00:00
Paul Eggert
562d543b2d (decode_options): Don't pass names longer than UNAME_FIELD_SIZE to
uname_to_uid, as it messes up the cache.  Similarly for gname_to_uid.
1999-01-31 02:52:16 +00:00
junio
d1f1e3a189 Implement -E (ending-file) option. 1997-12-04 06:37:52 +00:00
Paul Eggert
88ea940c0e (check_decimal): Now returns 1 if successful, 0 otherwise, and returns
uintmax_t value into new arg.  Check for arithmetic overflow.
(decode_options): Avoid overflow if record_size fits in size_t but not int.
Check for overflow on user or group ids.
1997-10-31 00:58:55 +00:00
Paul Eggert
5e0e89eac1 GNU tar 1.12 1997-04-25 20:09:49 +00:00
François Pinard
2c4ed788dd *** empty log message *** 1994-11-16 03:03:54 +00:00
François Pinard
17badf101f *** empty log message *** 1994-11-16 03:03:50 +00:00
François Pinard
4c9bc16369 *** empty log message *** 1994-11-16 03:03:47 +00:00
François Pinard
09f5542664 *** empty log message *** 1994-11-16 03:03:44 +00:00
François Pinard
ea86c73665 *** empty log message *** 1994-11-16 03:03:41 +00:00
François Pinard
dd9d8052ae *** empty log message *** 1994-11-16 03:03:38 +00:00
François Pinard
98bca35e4a *** empty log message *** 1994-11-16 03:03:34 +00:00
François Pinard
3a1bc84dbe *** empty log message *** 1994-11-16 03:03:31 +00:00
François Pinard
3350a37816 *** empty log message *** 1994-11-16 03:03:28 +00:00
François Pinard
e4fa391028 *** empty log message *** 1994-11-16 03:03:24 +00:00
François Pinard
c72ef8c173 *** empty log message *** 1994-11-16 03:03:21 +00:00
François Pinard
94c52ed842 *** empty log message *** 1994-11-16 03:03:18 +00:00
François Pinard
1ee48e8576 *** empty log message *** 1994-11-16 03:03:15 +00:00
François Pinard
a5bcafe881 *** empty log message *** 1994-11-16 03:03:12 +00:00
François Pinard
ccba255632 *** empty log message *** 1994-11-16 03:03:09 +00:00
François Pinard
3f7e8b8d05 *** empty log message *** 1994-11-16 03:03:06 +00:00
François Pinard
fd7b257a16 *** empty log message *** 1994-11-16 03:03:03 +00:00
François Pinard
2ea583242f *** empty log message *** 1994-11-16 03:03:00 +00:00
François Pinard
2f65bfa9c2 *** empty log message *** 1994-11-16 03:02:57 +00:00
François Pinard
54694ee258 Initial revision 1994-11-16 03:02:55 +00:00