Commit Graph

27 Commits

Author SHA1 Message Date
green
9404c74f6c If we must yell at the user than a file cannot be linked into place when
requested (not required) to do it, reassure them that cpio is still
intelligent enough that it will perform a full copy instead.
2003-07-11 02:19:19 +00:00
ache
761a62d3aa Don't attempt to parse %c 2001-03-21 21:17:54 +00:00
peter
9751ab22ae Fix warning: return type of main' is not int' 1999-09-15 01:58:44 +00:00
obrien
65fb255e80 Add FreeBSD tag. 1999-09-08 11:16:36 +00:00
bde
080e3ef296 Fixed printf format errors. 1998-06-30 19:53:09 +00:00
jmg
dbf5b6157a fix misspelling
Submitted-by: Josh Gilliam

Closes PR: 4422
1997-08-30 11:01:54 +00:00
obrien
012df9a25b I clamined to not have imported cpio.texi. This is not true. 1997-08-25 09:11:06 +00:00
bde
84834b817c Create fifos using mkfifo() instead of attempting to create them using
mknod().
1997-07-13 14:07:48 +00:00
obrien
38e82dbbff 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
f48bf10e97 FreeBSD specific readme for contributed source.
(FREEBSD-upgrade is now the "accpeted" filename for this).
1997-04-03 10:45:21 +00:00
obrien
8a15519b3e 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
4cc24cbbac 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
bee6a370f3 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
843afab413 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
f1b5283040 Support dummy lchown() so that cpio understands 4.4 symbolic links. 1997-03-30 10:45:44 +00:00
obrien
8596af284a - 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
3bca94d06e 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
3fecf166e7 Fix typo. 1997-03-30 10:32:26 +00:00
obrien
5dcdf37754 I goofed, Makefile lchown.c don't belong here. 1997-03-30 08:19:38 +00:00
obrien
6718192ec9 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
8d4a60ff51 FreeBSD BSD-style Makefile for contributed CPIO source. 1997-03-29 23:11:22 +00:00
obrien
54e8b4d91d 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
5d450da5b0 Don't need tcexparg.c on FreeBSD. 1997-03-29 23:05:27 +00:00
obrien
ad1858dc05 Don't need tcexparg.c which impliments Unix-style command line wildcards
for Turbo C
1997-03-29 23:04:03 +00:00
obrien
8a5f0f4d0b 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