aboutsummaryrefslogtreecommitdiff
path: root/bin/pax
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix format string errors relating mainly to the use of %qu to print off_t's.Tim J. Robbins2002-10-064-9/+15
| | | | | | | | | | | | Instead use %ju and cast the argument. WFORMAT=0 is still required in the Makefile because gcc warns about some strftime() calls (I don't think this behaviour is useful.) Tested on: sparc64, alpha, i386 Notes: svn path=/head/; revision=104548
* Removed extra $FreeBSD$. Moved #if 0 for the vendor id to the correctBruce Evans2002-08-221-5/+3
| | | | | | | place. Restored indent protection of copyright comment. Notes: svn path=/head/; revision=102245
* s/filesystem/file system/ as discussed on -developersTom Rhodes2002-08-2113-37/+37
| | | | Notes: svn path=/head/; revision=102230
* Fix a couple of typos in a comment.Giorgos Keramidas2002-07-152-3/+3
| | | | | | | | PR: docs/33559 Submitted by: Marc Olzheim <marcolz@ilse.nl> Notes: svn path=/head/; revision=100012
* Consistently use FBSDIDDavid E. O'Brien2002-06-3016-31/+32
| | | | Notes: svn path=/head/; revision=99110
* more file system > filesystemTom Rhodes2002-05-161-1/+1
| | | | Notes: svn path=/head/; revision=96706
* Consistancy check s/file system/filesystem/Tom Rhodes2002-05-1612-33/+33
| | | | | | | Reviewed by: brian Notes: svn path=/head/; revision=96702
* Use `The .Nm utility'Philippe Charnier2002-04-211-23/+24
| | | | Notes: svn path=/head/; revision=95204
* Use `The .Nm utility'Philippe Charnier2002-04-202-5/+5
| | | | Notes: svn path=/head/; revision=95122
* Do not return(f_returning_void());. Spell FALLTHROUGH to make it lint()able.Philippe Charnier2002-04-121-9/+15
| | | | Notes: svn path=/head/; revision=94553
* No need to cast; ().gr_gid is already the correct type.Mark Murray2002-03-221-1/+1
| | | | Notes: svn path=/head/; revision=92956
* Correct inadvertent style botches in previous commit.Kris Kennaway2002-02-041-2/+1
| | | | Notes: svn path=/head/; revision=90167
* Lock down with WFORMAT=1 except those directories with unfixed warnings.Kris Kennaway2002-02-041-0/+2
| | | | | | | Tested on i386 and alpha. Notes: svn path=/head/; revision=90166
* Ooops, forgot to remove the registers here.Warner Losh2002-02-0214-318/+318
| | | | Notes: svn path=/head/; revision=90113
* o __P has been reovedWarner Losh2002-02-0217-1342/+181
| | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. Notes: svn path=/head/; revision=90110
* Default to WARNS=2. Binary builds that cannot handle this must explicitlyDavid E. O'Brien2001-12-041-0/+1
| | | | | | | | | set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87323
* Use a quad int conversion routine for time_t instead of ulong, capable ofMatthew Dillon2001-10-281-2/+4
| | | | | | | decoding tar's full time buffer (12 digits). Notes: svn path=/head/; revision=85618
* Various string fields for certain cpio types are 11 rather then 8Matthew Dillon2001-10-281-6/+15
| | | | | | | | | | | | characters. Use quad conversion functions rather then long conversion where appropriate to handle the available range. Mainly fixes time_t but there was also a st_size ulong conversion in there that has to be quad or cpio cannot be used to copy files > 2G. MFC after: 1 day Notes: svn path=/head/; revision=85617
* Remove unnecessary casts in timeval.tv_sec load from st_*timeMatthew Dillon2001-10-281-4/+4
| | | | Notes: svn path=/head/; revision=85616
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-141-1/+4
| | | | Notes: svn path=/head/; revision=81622
* Initialize listf at main()Peter Wemm2001-08-131-1/+2
| | | | Notes: svn path=/head/; revision=81601
* mdoc(7) police: join split punctuation to macro calls.Ruslan Ermilov2001-08-101-7/+6
| | | | Notes: svn path=/head/; revision=81462
* Remove whitespace at EOL.Dima Dorfman2001-07-151-39/+39
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+6
| | | | Notes: svn path=/head/; revision=79526
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-2/+0
| | | | Notes: svn path=/head/; revision=79454
* Fix the type of the NULL arg to execl()Brian Somers2001-07-091-1/+2
| | | | | | | Idea from: Theo de Raadt <deraadt@openbsd.org> Notes: svn path=/head/; revision=79452
* Include missing header files which define functions for which gcc hasDima Dorfman2001-06-241-0/+1
| | | | | | | builtins (e.g., exit, strcmp). Notes: svn path=/head/; revision=78732
* Minor comment fixWarner Losh2001-05-301-1/+1
| | | | Notes: svn path=/head/; revision=77458
* mdoc(7) police: fix markup, rename and reorder some sections.Ruslan Ermilov2001-05-082-78/+104
| | | | Notes: svn path=/head/; revision=76360
* mdoc(7) police: sort xrefs.Ruslan Ermilov2001-05-081-2/+2
| | | | Notes: svn path=/head/; revision=76355
* Sync up with OpenBSD. Too many changes to note, but the major featuresKris Kennaway2001-05-0821-209/+1562
| | | | | | | | | | | | | | | | | are: * Implement cpio compatibility mode when pax is invoked as cpio * Extend tar compatibility mode to cover many of the GNU tar single-letter options (bzip2 mode, aka -y/-j is not present in OpenBSD). When invoked as tar, pax is now full-featured enough for use by the ports collection to extract distfiles and create packages. * Many bug fixes to the operation of pax and the tar compatibility modes * Code fixes for things like correct string buffer termination. I tried to preserve existing FreeBSD fixes to this utility; please let me know if I have inadvertently spammed something. Notes: svn path=/head/; revision=76351
* Add -z flag to pax to allow gzipping of archive output. Add -z and -Z (gzipKris Kennaway2001-05-055-13/+107
| | | | | | | | | | | | | | | | | and compress) to pax when used in tar mode (invoked as 'tar') for compatibility with GNU tar. bzip2 functionality for further GNU tar compatibility will be added at a later date. Note in the manpage that -z is non-standard. Obtained from: OpenBSD Reviewed by: -hackers MFC after: 2 weeks Notes: svn path=/head/; revision=76286
* Whitespace cleanup pass; reduce diffs with OpenBSD. No functional changes.Kris Kennaway2001-04-2610-80/+82
| | | | Notes: svn path=/head/; revision=76019
* Reduce diffs with OpenBSD:Kris Kennaway2001-04-2617-466/+468
| | | | | | | | | | | | | | | | | | | #if __STDC__ -> #ifdef __STDC__ pax_warn() -> paxwarn() sys_warn() -> syswarn() (foo *)NULL -> NULL bcopy -> memmove()/memcpy() bzero -> memset() Typo fixes sprintf() -> snprintf() rindex() -> strrchr() index() -> strchr() sys_errlist[] -> strerror() Obtained from: OpenBSD Notes: svn path=/head/; revision=76017
* Use mkstemp() for secure tempfile creation instead of tempnam()Kris Kennaway2001-04-264-17/+39
| | | | | | | | Obtained from: OpenBSD Reviewed by: mikeh Notes: svn path=/head/; revision=76016
* -Wnon-const-format sweep: make format strings const char *'s, addKris Kennaway2001-04-172-9/+9
| | | | | | | | | __printflike()/__printf0like() to function prototypes, as appropriate. Reviewed by: bde, -audit Notes: svn path=/head/; revision=75577
* Use nl_langinfo instead of %EfAndrey A. Chernov2001-03-211-6/+16
| | | | Notes: svn path=/head/; revision=74567
* POSIX wrote:Ruslan Ermilov2001-03-023-30/+11
| | | | | | | | | | | | | | | | : LC_TIME This variable shall determine the format and : contents of date and time strings when the -v : option is specified. Developers took this wrong. LC_TIME specifies the locale name, not the ``format'' argument of strftime(). Oops: pax -w -f /tmp/foo /dev/null LC_TIME=de_DE.ISO_8859-1 pax -v -f /tmp/foo Notes: svn path=/head/; revision=73345
* mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.Ruslan Ermilov2001-02-131-2/+2
| | | | Notes: svn path=/head/; revision=72432
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-061-1/+1
| | | | | | | | | Seperate does not exist in the english language. Submitted to look at by: kris Notes: svn path=/head/; revision=72089
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-5/+5
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-181-24/+24
| | | | Notes: svn path=/head/; revision=70150
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-5/+5
| | | | Notes: svn path=/head/; revision=68935
* Don't explicitly declare optarg and optind. These are declared inWarner Losh2000-08-161-2/+0
| | | | | | | unistd.h, which is already included. Notes: svn path=/head/; revision=64692
* Use %EfAndrey A. Chernov2000-06-221-2/+2
| | | | Notes: svn path=/head/; revision=61960
* Remove more single-space hard sentence breaks.Sheldon Hearn2000-03-021-1/+2
| | | | Notes: svn path=/head/; revision=57695
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57663
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2727-27/+27
| | | | Notes: svn path=/head/; revision=50471
* Various spelling/formatting changes.Kris Kennaway1999-05-0818-71/+71
| | | | | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org> Notes: svn path=/head/; revision=46684
* Rev 1.13 fixes PR bin/8958David E. O'Brien1998-12-061-1/+1
| | | | Notes: svn path=/head/; revision=41553