History log of /freebsd/bin/cp/utils.c (Results 126 – 150 of 178)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# d140946c 10-Mar-2008 John Baldwin <jhb@FreeBSD.org>

Add an '-a' option which is identical to specifying '-RpP' for
compatibility with other implementations.

MFC after: 1 month


Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0
# 9bdb7f2e 07-Oct-2006 Maxim Konovalov <maxim@FreeBSD.org>

o Style(9).

Submitted by: bde


# eb82e1a1 07-Oct-2006 Maxim Konovalov <maxim@FreeBSD.org>

o Avoid division by zero.
o Place error checking code near to the syscall.

Submitted by: bde


# 6a861e9b 06-Oct-2006 Maxim Konovalov <maxim@FreeBSD.org>

o Hold copied bytes counter in off_t. This prevents statistics
displayed by SIGINFO handler from overflow.

PR: bin/104039
Submitted by: Geoffrey Giesemann
MFC after: 2 weeks


# cbae88b9 25-Aug-2006 Ruslan Ermilov <ru@FreeBSD.org>

- Fix options order.
- Touch manpage's document date.


# d9c7237d 25-Aug-2006 Ruslan Ermilov <ru@FreeBSD.org>

Remove a stray -a option that probably sneaked in from julian's
attempt to enter append mode twice in vi(1). :-)


# 6fa36377 24-Aug-2006 Julian Elischer <julian@FreeBSD.org>

Add an option to allow copying of a hierarchy while linking he regular files.
Bikeshedded to death on: hackers
Submitted by:andersonatcenttech.com
MFC in: 1 month


Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0
# 9b4261c9 05-Sep-2005 Christian S.J. Peron <csjp@FreeBSD.org>

Attempt to complete the userspace integration of POSIX.1e extended ACLs.
This includes adding support for ACLs into cp(1) and mv(1) userspace
utilities.

For mv(1), if _PC_ACL_EXTENDED is in effect f

Attempt to complete the userspace integration of POSIX.1e extended ACLs.
This includes adding support for ACLs into cp(1) and mv(1) userspace
utilities.

For mv(1), if _PC_ACL_EXTENDED is in effect for the source AND destination
operands, the destination file's ACLs shall reflect the source.

For cp(1), if _PC_ACL_EXTENDED is in effect for both source and destination
operands, and -p has been specified, the ACLs from the source shall be
preserved on the destination.

MFC after: 1 month

show more ...


Revision tags: release/5.4.0_cvs, release/5.4.0
# a89237ae 09-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Sync program's usage() with manpage's SYNOPSIS.


Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0
# 7807cb24 05-Jun-2004 Tim J. Robbins <tjr@FreeBSD.org>

Plug file descriptor leak in implementation of -n option.


Revision tags: release/4.10.0_cvs, release/4.10.0
# 6195fb41 06-Apr-2004 Mark Murray <markm@FreeBSD.org>

Remove clause 3 from the UCB licenses.

OK'ed by: imp, core


Revision tags: release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0
# b9e25f43 13-Nov-2003 Alan Cox <alc@FreeBSD.org>

Don't mmap(2) and munmap(2) zero-length files.

Submitted by: Wiktor Niesiobedzki <bsd@w.evip.pl>


Revision tags: release/4.9.0_cvs, release/4.9.0
# a6b05ab6 22-Jun-2003 John-Mark Gurney <jmg@FreeBSD.org>

support saving both user/group and permissions on symlinks (from PR)

also fix a slight bogon that assumed an fd of 0 was not valid. Changed
it to be -1.

PR: bin/25017
Submitted by: Martin Kammerh

support saving both user/group and permissions on symlinks (from PR)

also fix a slight bogon that assumed an fd of 0 was not valid. Changed
it to be -1.

PR: bin/25017
Submitted by: Martin Kammerhofer

show more ...


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.


12345678