Commit Graph

118 Commits

Author SHA1 Message Date
wiz
b4371d47f5 Replace some misuses of "then" with "than". 2001-12-04 17:56:30 +00:00
hubertf
dc9f52db45 Add a second example for copying directory trees, this time as root
(using -pe, which also preserves ownership).

Proof-read by Perry.
2001-11-08 00:02:10 +00:00
hubertf
ab7c58c99d * Fix example on how to copy a tree.
Noted in PR 14486 by Hiramatsu Yoshifumi <hiramatu@boreas.dti.ne.jp>
 * In the same example, add flags to preserve permissions (-pp)
2001-11-07 03:17:24 +00:00
lukem
33b90eebfd fix WARNS=2 2001-11-03 12:49:31 +00:00
wiz
ee03b26cd0 Whitespace nits, sort sections, fix Dv usage (doesn't like macro argument). 2001-10-28 19:03:12 +00:00
lukem
9ee82d317a s/u_longlong_t/unsigned long long/ to shut up the parc port 2001-10-28 13:06:43 +00:00
lukem
158048edab improve previous; use %lu and (u_long) to print size_t 2001-10-26 16:03:24 +00:00
lukem
5e919e1699 Cast size_t's to (int) when printing as %d; appeases the sparc port.
Found by Rob Windsor in [bin/14362].
2001-10-26 15:58:43 +00:00
lukem
a7febe9ca0 minor improvements in wording and flag testing 2001-10-25 13:54:54 +00:00
lukem
55026d5454 Implement -M flag: During a write or copy operation, treat the list of
files on standard input as an mtree(8) `specfile' specification, and
write or copy only those items in the specfile.

If the file exists in the underlying file system, its permissions and
modification time will be used unless specifically overridden by the
specfile. An error will be raised if the type of entry in the specfile
conflicts with that of an existing file.

Otherwise, it is necessary to specify at least the following parameters
in the specfile: type, mode, gname or gid, and uname or uid, device
(in the case of block or character devices), and link (in the case of
symbolic links). If time isn't provided, the current time will be used.
2001-10-25 08:51:50 +00:00
lukem
c1bd745ccb - ansi KNF (just remove all the #ifndef __STDC__ prototype junk,
leaving the ansi stuff)
- use longlong_t instead of quad_t (etc), and rename *uqd*() -> *ull*()
- clean up the NET2_STAT stuff similar to ftpd; provide #defines and
  macros which select which cast to use, etc
- clean up the NET2_FTS and NET2_REGEX #define use
2001-10-25 05:33:32 +00:00
lukem
655fadf63c fix typo 2001-10-24 11:28:55 +00:00
wiz
5893dbb3e5 Fix typo. 2001-10-07 16:28:39 +00:00
wiz
4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
wiz
456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
wiz
2b3a9dde88 Fix typo (specifc instead of specific). 2001-09-04 21:47:31 +00:00
wiz
a9356936b4 seperate -> separate 2001-07-22 13:33:58 +00:00
lukem
f819878ce7 use more standard %ll_ in favour of %q_ 2001-01-04 15:39:50 +00:00
kleink
a8e69293b0 LC_TIME holds a locale name, which isn't a strftime() format string. 2000-10-22 15:41:31 +00:00
phil
c2abf9c643 Don't generate html yet. doc2html needs a fix. 2000-09-26 16:49:22 +00:00
kleink
97f9bd4019 Elaborate a bit on -t. 2000-09-04 07:26:38 +00:00
tv
b0477f6d7e Work around a groff bug by splitting a long .Cm into two parts. 2000-08-21 13:53:50 +00:00
thorpej
547c89117a Implement --atime-preserve. 2000-07-04 17:28:47 +00:00
thorpej
a3a7c5ccf1 Implement --use-compress-program. 2000-07-04 17:24:47 +00:00
thorpej
4120b8a499 Add GNU tar-style long options for pax's tar front-end. Still many
GNU options not implemented, but there is an #if 0'd out canonical
list.
2000-07-04 17:17:49 +00:00
mrg
27f963a94f minor KNF nits. 2000-06-17 18:19:10 +00:00
simonb
51ee9dc68d Don't declare 'extern opt*' getopt variables. 2000-04-14 05:52:56 +00:00
thorpej
d0666190e1 Add a -O option: force one volume. This causes pax to not prompt for
a new volume upon premature end-of-volume (e.g. broken pipe).  This is
especially useful in automated environments where error recovery cannot
be performed by a human.
2000-03-30 17:53:04 +00:00
thorpej
0317a20658 Use an in-core stack for directory permissions rather than a temporary
file.  The temporary file code can be reenabled by building with
-DDIRS_USE_FILE.

Fixes a problem where sysinst would fail to unpack the base set because
the temporary file wouldn't fit in the ramdisk.
2000-03-21 02:15:24 +00:00
soren
1594850f00 Fix doubled 'the' in comment. 2000-03-13 22:46:59 +00:00
itohy
f8adf56da0 Cleanup and fix typos.
Partially from FreeBSD.
2000-02-17 03:12:22 +00:00
itohy
fae63d9627 Use lseek(2) on devices if not tape drives.
This makes listing on raw disk device much faster.
Reviewed and discussed in tech-kern and tech-userlevel lists.
2000-02-17 03:08:40 +00:00
itohy
ba0ae447ef Fix SIGINFO botch (PR #8868).
Continue partial write(2) on signals (xwrite()).
Partial read(2) at a few places are also continued (xread()).

Add {read,write}_with_restart() hooks for porting on systems
which don't restart interrupted read()/write() calls.

Reviewed and discussed in tech-kern and tech-userlevel lists.
2000-02-17 03:06:12 +00:00
mycroft
8493d15a0c Fix a glitch with handling files larger than 2GB. 2000-01-19 18:41:23 +00:00
mycroft
e9e9dbbd42 Disable -pf for now, too. 1999-11-07 15:57:31 +00:00
mycroft
5d5e10aec4 Completely disable all the chflags(2) support for now. With this enabled, I
can't even get a build to finish over NFS.  Not acceptable.
1999-11-07 15:48:24 +00:00
mycroft
39b5cd452c Don't try to set file flags for a symlink. 1999-11-07 09:44:11 +00:00
mrg
14c29acc41 whoops; reverse the logic of the previous to make it correct. noted by mycroft. 1999-11-01 17:13:27 +00:00
mrg
058c411cdd add CAF testing to extraction, archiving and listing (where it is used) 1999-11-01 16:46:52 +00:00
mrg
b60cafe2fb add a new -p subflag: 'f' to preserve 4.4BSD fileflags. this only
really works for `pax -rw' but that's where it is most useful.
1999-11-01 01:35:58 +00:00
is
e413a4ff50 Implement positional -C argument to tar. 1999-10-22 20:59:08 +00:00
mrg
78e294d1bc support ././@LongLink extraction, as created by GNU tar. 1999-10-22 10:43:11 +00:00
mrg
f2cf747ebc remove some old cruft. 1999-10-22 10:38:40 +00:00
jdolecek
4ed908a566 add SEE ALSO section, xref tar(1), cpio(1), symlink(7) 1999-09-26 21:19:54 +00:00
enami
e9de0d1bbd Don't emphasys punctuations. 1999-09-26 09:57:31 +00:00
tron
10fa22ca89 Fix "tar" mode usage string. 1999-08-24 08:02:27 +00:00
tron
62724fe719 Recognize GnuTAR's "h" (instead of "H") and "P" options. 1999-08-24 08:00:03 +00:00
tron
1fbe6b7eae Strip leading slashes from filenames by default, add new "A" option to
disable this behaviour. Patches supplied by Peter Seebach in PR bin/8233.
1999-08-24 07:57:06 +00:00
kleink
9d3e44943a Add the ability to handle estranged V7 tar archives that use USTAR-style
directories; addresses PR bin/8220.
1999-08-18 17:46:28 +00:00
kleink
e97454c22b Honor the contents of $TMPDIR for the creation of temporary files, and use
_PATH_TMP instead of hardcoding /tmp if not set in the environment; fixes
PR bin/7796 from Chris Demetriou.
1999-07-03 14:42:39 +00:00