History log of /freebsd/bin/cp/utils.c (Results 76 – 100 of 178)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/5.1.0_cvs, release/5.1.0
# 00d321a2 07-Apr-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

Add a SIGINFO handler.


Revision tags: release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0
# ba8acd9d 18-Oct-2002 Mark Murray <markm@FreeBSD.org>

Constify and staticify for lint.


Revision tags: release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2
# 13fcef50 31-Jul-2002 Mark Murray <markm@FreeBSD.org>

Fix some easy WARNS.


# 786c276f 23-Jul-2002 Johan Karlsson <johan@FreeBSD.org>

Add the -n option, which automatically answers "no" to the overwrite question.

PR: 7828
Suggested by: Daniel O'Connor <doconnor@gsoft.com.au>
Approved by: sheldonh (mentor)
MFC after: 2 weeks


Revision tags: release/4.6.1
# 7ede89e4 03-Jul-2002 Mark Murray <markm@FreeBSD.org>

Fix some low-hanging lint-fruit: endianness and staticness warnings.


Revision tags: release/4.6.0_cvs
# 5eb43ac2 30-Jun-2002 David E. O'Brien <obrien@FreeBSD.org>

Consistently use __FBSDID


# 8bd08b5f 22-Feb-2002 Mark Murray <markm@FreeBSD.org>

Fix warnings inspired by lint, a commercial lint and WARNS=4.


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# 5dce647c 02-Feb-2002 Warner Losh <imp@FreeBSD.org>

Modernization effort for bin/c*:

o __P has been reoved
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 (

Modernization effort for bin/c*:

o __P has been reoved
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.

Approved by: arch@, new style(9)

show more ...


# 048e4976 11-Dec-2001 Stephen McKay <mckay@FreeBSD.org>

Typo in warning message (chown should be chmod).


# 26f6b0fb 19-Jun-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Add more headers that are required with -fno-builtin (stdlib and strings)


# e1d071db 11-Jun-2001 Bruce Evans <bde@FreeBSD.org>

Removed the broken code which claimed to lose the set[ug]id bits in
the !(pflag && setfile()) case for regular files unless the copy is
owned by the same user and group. These bits have already been

Removed the broken code which claimed to lose the set[ug]id bits in
the !(pflag && setfile()) case for regular files unless the copy is
owned by the same user and group. These bits have already been lost
(or never gained) in the correct way. The code didn't actually lose
the bits; it depended on them being lost already (apparently in all
cases) and attempted to gain them as necessary, but it often gained
them (and sometimes collateral bits) when wrong:
- pflag && setfile() == 0 case (i.e., for a successful cp -p):
setfile() copies all the attributes as correctly as possible (as
specified by POSIX), and we sometimes messed up the up the mode by
setting it again. Also, if the file is immutable, then setting the
mode again gave spurious errors (PR 20646).
- !pflag case. If the target is created, POSIX requires it to not
have the set[ug]id bits, but we sometimes copied them from the source.
If the target already exists, POSIX requires its mode to be unchanged,
but we sometimes copied the whole mode from the source.

PR: 20646
MFC after: 4 weeks

show more ...


# 34f9c106 16-May-2001 Warner Losh <imp@FreeBSD.org>

Migrate from using MAXPATHLEN to MAX_PATH. Use strlcpy to copy the
strings.


Revision tags: release/4.3.0_cvs, release/4.3.0, release/4.2.0
# eb2fc780 10-Oct-2000 Garrett Wollman <wollman@FreeBSD.org>

Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and thereby
<time.h>).


Revision tags: release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs
# 127432d7 23-Jan-2000 Michael Haro <mharo@FreeBSD.org>

fix cp -vi bug

Submitted by: Dan Papasian (bugg_ on irc)


Revision tags: release/3.4.0_cvs, release/3.3.0_cvs
# fcb2f1b3 29-Aug-1999 Michael Haro <mharo@FreeBSD.org>

brucify and move printf() to catch cases of special files


# 2a456239 28-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 4506e907 26-Aug-1999 Michael Haro <mharo@FreeBSD.org>

Add a verbose mode to show what files are being copied.
Idea taken from obrien.

Reviewed by: obrien


Revision tags: release/3.2.0
# 46be34b9 08-May-1999 Kris Kennaway <kris@FreeBSD.org>

Various spelling/formatting changes.

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>


# 426e9c1d 25-Apr-1999 Warner Losh <imp@FreeBSD.org>

First set of fixes to keep egcs happy. These include {} around single
statement if blocks[*] when the else could be ambiguous, not defaulting
to int type and removal of some unused variables.

[*] T

First set of fixes to keep egcs happy. These include {} around single
statement if blocks[*] when the else could be ambiguous, not defaulting
to int type and removal of some unused variables.

[*] This is explicitly allowed by style(9) when the single statement
spans more than one line.

Reviewed by: obrien, chuckr

show more ...


Revision tags: release/3.1.0, release/3.0.0, release/2.2.8
# 40fc4ee2 18-Nov-1998 Bruce Evans <bde@FreeBSD.org>

Don't use mmap() for non-regular files, since st_size is only meaningful
for regular files. This fixes recent breakage of cp'ing from /dev/zero.
/dev/zero doesn't support mmap(), but the device driv

Don't use mmap() for non-regular files, since st_size is only meaningful
for regular files. This fixes recent breakage of cp'ing from /dev/zero.
/dev/zero doesn't support mmap(), but the device driver mmap routines are
not called for mapping 0 bytes, so the error was not detected. mmap()
can't even be used for cp'ing special files that support mmap(), since
there is general way to determine the file size.

show more ...


Revision tags: release/2.2.7
# 4faaa037 10-Jun-1998 Peter Wemm <peter@FreeBSD.org>

Don't attempt to change owner/mode/flags that don't need to changed.
This should calm down attempts to `cp -p' to a nfs mount or some other
filesystem that doesn't accept flags or all combinations of

Don't attempt to change owner/mode/flags that don't need to changed.
This should calm down attempts to `cp -p' to a nfs mount or some other
filesystem that doesn't accept flags or all combinations of flags.
It will warn if it fails to change flags though.

show more ...


# e00e592a 09-Jun-1998 Warner Losh <imp@FreeBSD.org>

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


# c194af34 13-May-1998 Philippe Charnier <charnier@FreeBSD.org>

Restore Lite-2 sccsid.


# cbf6f7d3 06-May-1998 Philippe Charnier <charnier@FreeBSD.org>

Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.


Revision tags: release/2.2.6
# bf770561 17-Jan-1998 Bruce Evans <bde@FreeBSD.org>

Fixed syntax error in normally-unconfigured code in previous commit.


12345678