Commit Graph

25 Commits

Author SHA1 Message Date
peter
27eff20bc0 Fix warning: return type of main' is not int' 1999-09-15 01:58:44 +00:00
obrien
7ca7432eb9 Add FreeBSD tag. 1999-09-08 11:16:36 +00:00
bde
03f83186e2 Fixed printf format errors. 1998-06-30 19:53:09 +00:00
jmg
369369a577 fix misspelling
Submitted-by: Josh Gilliam

Closes PR: 4422
1997-08-30 11:01:54 +00:00
obrien
b0d31543c4 I clamined to not have imported cpio.texi. This is not true. 1997-08-25 09:11:06 +00:00
bde
eb3fe44673 Create fifos using mkfifo() instead of attempting to create them using
mknod().
1997-07-13 14:07:48 +00:00
obrien
db68e77307 Fix bug that can cuase a loop to become endless.
The bug is triggered by attempts to copy in (-i) a file which happens
to have zero length.
1997-04-03 11:24:59 +00:00
obrien
4453806beb FreeBSD specific readme for contributed source.
(FREEBSD-upgrade is now the "accpeted" filename for this).
1997-04-03 10:45:21 +00:00
obrien
eac2e1d71e This commit was generated by cvs2svn to compensate for changes in r24434,
which included commits to RCS files with non-trunk default branches.
1997-03-31 09:37:59 +00:00
obrien
22bb48addf Virgin import of GNU cpio v2.4.2. 1997-03-31 09:37:59 +00:00
obrien
1f46deedf7 JKH says:
Change "Found end of tape.  Load next tape ..." messages to say
   "volume" instead of tape.  Running cpio off of /dev/fd0 and having
   it say "give me the next tape" is kind of ludicrous.. :-)
1997-03-30 11:01:43 +00:00
obrien
95c8f472c8 don't lookup rsh(1) at bogus pathnames
Submitted by:	joerg via old gnu/usr.bin/cpio v2.3
1997-03-30 10:56:38 +00:00
obrien
ea9ed8a48e Don't set the umask until after we have processed the arguments
and opened the archive file.  This allows "cpio -o -O output_file"
to create the output file with the callers proper umask.
Closed PR# 1391

Add setlocale LC_ALL (from ache).
1997-03-30 10:50:01 +00:00
obrien
a87cb4d9ea Support dummy lchown() so that cpio understands 4.4 symbolic links. 1997-03-30 10:45:44 +00:00
obrien
24ef029f8b - Correct the recommended option for "find" from "-depth" to "-d".
- Fix gross spelling and typographical errors pointed out by Keith Bostic.
- Mention -l, --link is only usable with "-p".

Obtained from: old gnu/usr.bin/cpio v2.3.
1997-03-30 10:42:21 +00:00
obrien
cbc3e86062 Output a zero rdev except for bdevs, cdevs, fifos and sockets. This
stops regular files with unrepresentable rdevs from being rejected
and makes the output independent of unpreservable metadata.

Don't output a file if the major, minor or totality of its rdev would be
truncated.  Print a message about the skipped files to stderr but don't
report the error in the exit status.  cpio's abysmal error handling doesn't
allow continuing after an error, and the rdev checks had to be misplaced
to avoid the problem of returning an error code from routines that return
void.

Minor numbers are limited to 21 bits in pax's ustar format and to 18
bits in archives created by gnu tar (gnu tar wastes 3 bits for padding).
pax's and cpio's ustar format is incompatible with gnu tar's ustar
format for other reasons (see cpio/README).

Submitted by:	bde via old gnu/usr.bin/cpio v2.3.
1997-03-30 10:34:16 +00:00
obrien
1e57e64856 Fix typo. 1997-03-30 10:32:26 +00:00
obrien
75611e7263 I goofed, Makefile lchown.c don't belong here. 1997-03-30 08:19:38 +00:00
obrien
842af6d9ba Replace ctime by strftime %c to use national representation.
Use isprint() for Localization.

Submitted by:	ache via gnu/usr.bin/cpio v2.3
1997-03-30 00:23:39 +00:00
obrien
3734a341f5 FreeBSD BSD-style Makefile for contributed CPIO source. 1997-03-29 23:11:22 +00:00
obrien
7869f5cc92 Rodney Grimes's dummy lchown() so that cpio understands 4.4 symbolic links.
(taken from old gnu/usr.bin/cpio)

Reviewed by:	phk
1997-03-29 23:10:24 +00:00
obrien
42d90a2c91 Don't need tcexparg.c on FreeBSD. 1997-03-29 23:05:27 +00:00
obrien
ede8fa37a2 Don't need tcexparg.c which impliments Unix-style command line wildcards
for Turbo C
1997-03-29 23:04:03 +00:00
obrien
2c202a1f07 FreeBSD specific readme for contributed CPIO soruces. 1997-03-29 22:48:41 +00:00
obrien
b3a30fbfec Virgin import of GNU cpio v2.4.2. 1997-03-29 22:40:46 +00:00