Commit Graph

24 Commits

Author SHA1 Message Date
Paul Eggert
be4c265a8d (read_and): Exclude pathnames if any of their components are excluded.
(from_oct): Use C quoting style for error; omit trailing nuls.
1999-07-17 01:49:35 +00:00
Paul Eggert
2016526b1a (decode_header): Do not assume that S_IFBLK and S_IFCHR are defined. 1999-07-12 13:03:58 +00:00
Paul Eggert
7962e1901b (read_and): Use excluded_filename instead of check_exclude.
Check base name of incoming file name, not entire file name, when
deciding whether to exclude it.
1999-07-08 03:45:21 +00:00
Paul Eggert
bc88be110b Don't include <ctype.h>; system.h already does this.
(ISODIGIT, ISSPACE): Remove; now in system.h.
(read_and): Excise ending_file_option.
(decode_header): No need to AND mode with 07777; MODE_FROM_OCT
does this now.
(from_oct): Cast ISSPACE arg to unsigned char.
(mode_from_oct): Translate modes from external to internal form.
Do not complain about unrecognized mode bits.
(decode_mode): Do not assume mode bits have traditional Unix values.
1999-07-02 21:25:09 +00:00
Paul Eggert
6290150c47 Fix copyright notice. 1999-07-01 21:01:44 +00:00
Paul Eggert
69e400d4e0 (print_header): Change sizes of uform and gform from 11 to
UINTMAX_STRSIZE_BOUND.
1999-06-16 11:04:02 +00:00
Paul Eggert
f31b9d842b Include <quotearg.h>.
(from_oct): Add forward decl.
(read_header): Return HEADER_FAILURE if we can't parse the checksum.
(from_oct): Report an error only if TYPE is nonzero.
Quote any funny characters in bad header.
1999-03-22 22:06:22 +00:00
Paul Eggert
545ec1a3fa (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct, off_from_oct,
size_from_oct, time_from_oct, uid_from_oct, uintmax_from_oct):
Use TYPE_MAXIMUM instead of macros like OFF_MAX, which are not reliable
(e.g. OFF_MAX in AIX 4.2 is incorrect).
1999-03-02 00:10:11 +00:00
Paul Eggert
c7f56e640d (gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct,
off_from_oct, size_from_oct, time_from_oct, uid_from_oct):
Cast limit to uintmax_t, for
benefit of pre-ANSI compilers with long long.
1999-01-27 20:42:30 +00:00
Paul Eggert
e1ac06bcca (read_header): Accept file names as specified by POSIX.1-1996 section 10.1.1. 1998-12-07 22:36:22 +00:00
junio
d1f1e3a189 Implement -E (ending-file) option. 1997-12-04 06:37:52 +00:00
Paul Eggert
241bbee81b (read_and, list_archive, read_header, decode_mode, print_header,
print_for_mkdir): Use mode_t, off_t, size_t when appropriate.  Remove
now-useless casts.  Use unsigned long to print *_t types, except use
STRINGIFY_BIGINT for off_t.

(read_header): Check for overflow when converting header size.

(from_oct): Now static.  Now returns uintmax_t.  `where' arg is now
const char *.  Size arg is now size_t.  Now takes new type and maxval
args.  Compute result using uintmax_t, not long.  Report error if
field does not contain octal number in range.
(gid_from_oct, major_from_oct, minor_from_oct, mode_from_oct,
off_from_oct, size_from_oct, time_from_oct, uid_from_oct,
uintmax_from_oct): New functions.

(stringify_uintmax_t_backwards): New function.

(decode_mode, print_for_mkdir): Mode arg is now mode_t.
(skip_file): Offset arg is now off_t.
1997-10-31 00:58:55 +00:00
Paul Eggert
b7890ac757 GNU tar 1.12 1997-04-25 20:16:30 +00:00
François Pinard
f809340f62 *** empty log message *** 1994-11-16 02:56:17 +00:00
François Pinard
2a29aa0b1d *** empty log message *** 1994-11-16 02:56:14 +00:00
François Pinard
fa8cdce447 *** empty log message *** 1994-11-16 02:56:09 +00:00
François Pinard
05f5fdb687 *** empty log message *** 1994-11-16 02:56:06 +00:00
François Pinard
01474cfa92 *** empty log message *** 1994-11-16 02:56:03 +00:00
François Pinard
35802ae44c *** empty log message *** 1994-11-16 02:56:01 +00:00
François Pinard
5f80b268a8 *** empty log message *** 1994-11-16 02:55:58 +00:00
François Pinard
71c2c8c303 *** empty log message *** 1994-11-16 02:55:53 +00:00
François Pinard
a6961b8e22 Initial revision 1994-11-16 02:55:45 +00:00
François Pinard
5aac7fa0e7 *** empty log message *** 1994-11-16 02:55:42 +00:00
François Pinard
06d985ed13 *** empty log message *** 1994-11-16 02:55:29 +00:00