David E. O'Brien
a748290789
Default to WARNS=2. Binary builds that cannot handle this must explicitly
...
set WARNS=0.
Reviewed by: mike
2001-12-04 01:57:47 +00:00
Matthew Dillon
dbd9746f71
Use a quad int conversion routine for time_t instead of ulong, capable of
...
decoding tar's full time buffer (12 digits).
2001-10-28 02:51:43 +00:00
Matthew Dillon
2ad45bbe3d
Various string fields for certain cpio types are 11 rather then 8
...
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
2001-10-28 02:45:04 +00:00
Matthew Dillon
6e63a1049a
Remove unnecessary casts in timeval.tv_sec load from st_*time
2001-10-28 02:42:26 +00:00
Ruslan Ermilov
753d686d34
mdoc(7) police: s/BSD/.Bx/ where appropriate.
2001-08-14 10:01:54 +00:00
Peter Wemm
ab01f43385
Initialize listf at main()
2001-08-13 21:54:47 +00:00
Ruslan Ermilov
94ba280c59
mdoc(7) police: join split punctuation to macro calls.
2001-08-10 17:35:21 +00:00
Dima Dorfman
7ebcc426ef
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
Ruslan Ermilov
caa2db3be9
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 10:04:09 +00:00
Dima Dorfman
70d51341bf
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
2001-07-09 09:54:33 +00:00
Brian Somers
7bc6d0158f
Fix the type of the NULL arg to execl()
...
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
Dima Dorfman
cafefe8c1b
Include missing header files which define functions for which gcc has
...
builtins (e.g., exit, strcmp).
2001-06-24 23:04:23 +00:00
Warner Losh
c619c9a345
Minor comment fix
2001-05-30 03:25:45 +00:00
Ruslan Ermilov
a0eb755a9b
mdoc(7) police: fix markup, rename and reorder some sections.
2001-05-08 08:12:53 +00:00
Ruslan Ermilov
72272f83b2
mdoc(7) police: sort xrefs.
2001-05-08 07:19:19 +00:00
Kris Kennaway
b1787dec81
Sync up with OpenBSD. Too many changes to note, but the major features
...
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.
2001-05-08 06:19:06 +00:00
Kris Kennaway
1192d531bf
Add -z flag to pax to allow gzipping of archive output. Add -z and -Z (gzip
...
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
2001-05-05 01:10:13 +00:00
Kris Kennaway
d12dd1a1b5
Whitespace cleanup pass; reduce diffs with OpenBSD. No functional changes.
2001-04-26 09:22:28 +00:00
Kris Kennaway
778766fe4d
Reduce diffs with OpenBSD:
...
#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
2001-04-26 08:37:00 +00:00
Kris Kennaway
ffbef1cd72
Use mkstemp() for secure tempfile creation instead of tempnam()
...
Obtained from: OpenBSD
Reviewed by: mikeh
2001-04-26 07:32:27 +00:00
Kris Kennaway
a2e73040f4
-Wnon-const-format sweep: make format strings const char *'s, add
...
__printflike()/__printf0like() to function prototypes, as appropriate.
Reviewed by: bde, -audit
2001-04-17 07:46:38 +00:00
Andrey A. Chernov
5f94e68da9
Use nl_langinfo instead of %Ef
2001-03-21 13:33:09 +00:00
Ruslan Ermilov
7a6be91366
POSIX wrote:
...
: 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
2001-03-02 16:19:49 +00:00
Ruslan Ermilov
47dec78170
mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.
2001-02-13 09:56:35 +00:00
Jeroen Ruigrok van der Werven
9a01d32bfd
Fix typo: seperate -> separate.
...
Seperate does not exist in the english language.
Submitted to look at by: kris
2001-02-06 10:39:38 +00:00
Ruslan Ermilov
d0353b836e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
Ruslan Ermilov
1586940ea5
Prepare for mdoc(7)NG.
2000-12-18 14:48:17 +00:00
Ruslan Ermilov
be8b149795
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 11:39:41 +00:00
Warner Losh
2c15efcfb5
Don't explicitly declare optarg and optind. These are declared in
...
unistd.h, which is already included.
2000-08-16 05:14:49 +00:00
Andrey A. Chernov
195c7083da
Use %Ef
2000-06-22 16:57:39 +00:00
Sheldon Hearn
4e86fcacf6
Remove more single-space hard sentence breaks.
2000-03-02 14:54:02 +00:00
Sheldon Hearn
bef84d6bc0
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 10:43:09 +00:00
Peter Wemm
2a4562393f
$Id$ -> $FreeBSD$
1999-08-27 23:15:48 +00:00
Kris Kennaway
46be34b902
Various spelling/formatting changes.
...
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
1999-05-08 10:22:15 +00:00
David E. O'Brien
f46ecf8bc9
Rev 1.13 fixes PR bin/8958
1998-12-06 05:49:29 +00:00
David E. O'Brien
f08c1d5e48
There is a bug in /bin/pax -s option processing. The code assumes that all
...
pattern matches will occur at offset zero of the source string. The bug causes
the input source string pointer to be incremented by the offset of the end of
the match, instead of it's length. The fix is to only increment the pointer by
the length of the pattern match (eo-so).
Of course, the one example in the man page shows a situation where the match
occurs at offset 0.
Submitted by: John W. DeBoskey <jwd@unx.sas.com>
Obtained from: freebsd-current@freebsd.org
1998-12-05 10:29:10 +00:00
Mike Smith
4757e52686
- Fix off-by-one problem in tar where filenames of length 100
...
and dirnames of length 99 don't archive.
Submitted by: Wilfredo Sanchez <wsanchez@apple.com>
Obtained from: OpenBSD
1998-10-20 05:52:33 +00:00
Warner Losh
e00e592a7a
Make sure we pass the length - 1 to readlink, since it adds its own
...
NUL at the end of the path.
Inspired by: OpenBSD's changes in this area by theo de raadt
1998-06-09 03:38:43 +00:00
Steve Price
9e74704eb2
Clarify the example a bit.
...
PR: 6801
Reviewed by: David Kelly <dkelly@hiwaay.net>
1998-05-31 22:43:57 +00:00
Philippe Charnier
c9a8d1f4dd
Correct use of .Nm. Add rcsid.
1998-05-15 06:30:58 +00:00
Philippe Charnier
05e61fd508
.Sh AUTHOR -> .Sh AUTHORS
...
Use .An/.Aq
1998-03-19 07:26:37 +00:00
Eivind Eklund
5b421cac1a
Make code slightly more robust towards change by calculating size
...
in-place.
Obtained from: OpenBSD ar_subs.c rev 1.7 by Tood Miller <millert@openbsd.org)
1997-12-12 18:38:22 +00:00
Eivind Eklund
007d33500e
Remove simultaneous include of <sys/param.h> and <sys/types.h>.
...
Reorder includes to be alphabetical some places since I already was in
here.
1997-12-10 22:18:54 +00:00
Søren Schmidt
a885d9dcf9
Dont have an internal function named "warn" it clashes with libc..
...
Needed for ELF.
1997-08-29 16:12:30 +00:00
Philippe Charnier
877155d0f5
Off by 1 adjustment. Properly NUL terminate after strncpy.
...
Obtained from: {Net|Open}BSD
1997-06-02 06:30:06 +00:00
Warner Losh
93ef08af3e
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-28 15:24:41 +00:00
Peter Wemm
b97fa2ef50
Revert $FreeBSD$ to $Id$
1997-02-22 14:13:04 +00:00
Jordan K. Hubbard
1130b656e5
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Steve Price
78b09ffeaf
-Wall cleaning.
1996-12-14 06:08:03 +00:00
Andrey A. Chernov
6e0d255e4b
Pick collate info for RE character ranges
1996-08-11 16:59:27 +00:00