Commit Graph

57 Commits

Author SHA1 Message Date
kleink
b75d68301e <sys/fcntl.h> -> <fcntl.h> 1999-02-12 15:04:00 +00:00
tron
7455a4498d Fix opt_add() prototype. 1999-02-07 15:08:50 +00:00
tv
4aa7016df7 Fix opt_add to take const char * so that it can be passed a constant
string legally (it strdup()s the argument).  How pax-as-tar `-o' ever
worked without a coredump is beyond me...

Also modify pax-as-tar `-o' to do three things, which depend on the
create/extract mode:

- write V7 format archives (which, though part of GNU tar, actually
  goes along with the following point--after all, old pax-as-tar created
  V7 archives by default);
- write archives with "write_opt=nodir", as pax already did, and as
  specified by 4.2BSD;
- extract archives with owner/group set to invoking user, as specified
  by SUS.
1999-02-07 00:56:55 +00:00
tv
fb3e11970f Lost 5 lines in the version that was committed. Re-add them. 1999-02-02 23:42:41 +00:00
tv
6e7077da0a Uh, when called as "tar" we should still default to "ustar" output, not
V7 tar format.  Also change meaning of pax-as-tar option "-o" to mean
"use V7 output format" (same as GNU tar's -o).
1999-02-02 23:31:52 +00:00
mycroft
75e40b3781 Make this build on the Alpha. 1999-01-21 08:46:06 +00:00
mrg
ce6b187617 implement the gnutar -X flag in terms of pax -s. fix some bugs in pax -s handling while i am here... 1999-01-20 14:45:09 +00:00
christos
f07f96ffab Fix problem compiling when NET2_STAT is defined. 1998-11-04 19:40:13 +00:00
christos
3c85b6c0b3 char -> unsigned char cast. 1998-11-04 19:38:12 +00:00
christos
7bd45f99ac make printf formats conservative 1998-11-04 19:37:56 +00:00
mycroft
5512409373 Reconstruct a split file name correctly. 1998-10-15 00:07:34 +00:00
tv
af575980ab Transparently handle old-style GNU tar archives that may have garbage in
the trailing block and do not have an end-of-archive marker.  (Does this
handling based on whether the ustar id is "ustar" or "ustar  ".)
1998-08-10 22:34:59 +00:00
mycroft
d0e267dc7f Use the uid/gid caching moved into libc. Fixed a memory leak! 1998-07-28 17:44:23 +00:00
mycroft
ee9e50eacb Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mycroft
9dc385beb1 Delint. 1998-07-28 05:31:22 +00:00
mycroft
ac70c0c5ed Slight code reduction. 1998-07-27 17:55:17 +00:00
mycroft
dbfa4f81b0 __AUDIT__ cleanup. 1998-07-27 16:43:25 +00:00
mycroft
778e6e0151 const poisoning. 1998-07-26 19:34:10 +00:00
mrg
02a32ed236 oops, fix broken cpio options code. tar options code should be made like pax and cpio code. 1998-06-09 10:53:55 +00:00
kleink
461522b44f Need <time.h> for time(), localtime() and mktime() prototypes. 1998-04-01 14:14:43 +00:00
kleink
d3d8c1577f Need <time.h> for strftime(), localtime() and time() prototypes. 1998-04-01 14:06:12 +00:00
kleink
3a5b0ca840 Need <time.h> for time() prototype. 1998-04-01 14:04:52 +00:00
mycroft
0fda14e4f9 Use major(), minor() and makedev(), not a hacked up local equivalent, which
only supported 8-bit major and minor numbers.
1998-03-26 02:14:00 +00:00
mrg
51fc9487fd - implement -C and -l for pax-as-tar, as inspried by GNU tar.
- minor cleanups to the options parsing code.
- add a cpio frontend.

note:  a few GNU/svr4 cpio options are not supported yet (#ifdef
notyet), however all x/open ones are.
1998-03-06 09:13:01 +00:00
mrg
d8a6acd10f document pax -z. only 2 years late... 1998-03-02 04:50:57 +00:00
mrg
4b6f5a7390 rename variable to "cpio_swp_head" 1998-02-28 15:53:00 +00:00
mrg
dbd4110b3b fix typo in a comment 1998-02-28 15:52:04 +00:00
perry
6982982f8d macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:39:31 +00:00
mycroft
620e5b5b8b Deal with GCC warnings. 1998-02-03 07:48:32 +00:00
mycroft
f8c64f2198 Allow a century to be specified in time stamps. 1998-01-21 00:11:15 +00:00
lukem
a288a2f633 getoldopt is expect to return -1 (not EOF), so "make it so" 1997-11-01 06:58:44 +00:00
enami
c3872193cf Fix .Nm usage. 1997-10-20 08:50:59 +00:00
mycroft
a82e8868a6 When copying time stamps, copy the microseconds, too. Also nuke silly
static structure.
1997-10-19 13:02:42 +00:00
christos
e230a48b57 CFLAGS->CPPFLAGS 1997-10-10 19:47:50 +00:00
enami
062c3f563a Restore owner/group/mode/atime/mtime of symbolic links. 1997-10-08 22:51:27 +00:00
lukem
332c413b75 * cleanup manpage
* getopt returns -1 not EOF
* deprecate register
1997-09-14 14:54:32 +00:00
thorpej
cd1c0efc7e Cast off_t's to (long long) for printing with %q*, for the Alpha. 1997-07-30 05:04:23 +00:00
scottr
2b51de1aee #if __GNUC__, work around bogus initialization warning that occurs on
at least the m68k-based ports.
1997-07-25 23:53:54 +00:00
christos
23edbe3557 Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
1997-07-20 22:36:20 +00:00
christos
f3cd602281 - Rename local warn so tty_warn that we can include <err.h> since this program
uses err() and errx().
- Fix printf format strings.
- Added WARNS=1; note
- Added missing prototypes.
- Split overloaded trail function into trail() and subtrail().
1997-07-20 20:32:15 +00:00
christos
9d27dbbac5 - Rename local warn so tty_warn that we can include <err.h> since this program
uses err() and errx().
- Fix printf format strings.
- Added WARNS=1; note
- Added missing prototypes.
- Split overloaded trail function into trail() and subtrail().
1997-07-20 20:32:12 +00:00
kleink
5d1b524ff3 Fix OBOB: when reassembling a file name from the header block's `prefix'
and `name' fields, don't overwrite the glueing '/' between them.
1997-06-25 22:44:00 +00:00
kleink
e5b01aa2f2 Use '0' to front-pad octal strings, not ' '. 1997-05-16 09:38:40 +00:00
mycroft
bd05c38cfd Adjust the input string by the right amount if the pattern wasn't at the
beginning.
1997-03-29 15:29:31 +00:00
lukem
a5f8609286 use mkstemp() instead of tempnam() 1997-03-22 03:14:27 +00:00
tls
48250187e6 kill 'register' 1997-01-11 02:04:27 +00:00
pk
06b0897774 Change misleading example to read `pax -v -f filename' which doesn't
extract files (Robert Dick; PR#3032)
1996-12-18 23:37:11 +00:00
jtc
26db98be19 Fixed typo in comment 1996-05-17 01:07:47 +00:00
mrg
7f64ea0365 impliment -z (gzip) in pax and tar, and -Z (compress) in tar. 1996-03-26 23:54:13 +00:00
cgd
49f0ad8601 convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00