summaryrefslogtreecommitdiff
path: root/bin/cp
AgeCommit message (Collapse)Author
2007-04-06when copying regular files, look for blocks of zeroes. when we see them,Ted Unangst
just lseek ahead to create a sparse file. saves disk and time. note this behavior in the man page. ok? deraadt millert
2006-04-25various small lint cleanups; ok ottoTheo de Raadt
2006-03-17Call fts_close(); from NetBSD's Coverity analysis; ok jaredy@ millert@Otto Moerbeek
2005-11-09Handle dir not readable case. Problem noted by chefren. ok hshoexer@ jaredy@Otto Moerbeek
2004-12-13Only warn if we try to cp(1) a socket. Consequently, this makesOtto Moerbeek
mv(1)ing trees containing sockets across filesystems much more smooth. ok millert@ tedu@ fgsch@ pedro@ deraadt@
2004-12-10sort options + sync usage();Jason McIntyre
standard EXAMPLES; various other tweaks; ok millert@
2004-12-07Document cp(1) does not preserve hard links. With and ok jmc@ and millert@Otto Moerbeek
2003-11-24madvise mmapped memory (not used code)Michael Shalayeff
2003-10-30Fix typo in comment; Bruno RoheeTodd C. Miller
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-07-29spacingTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-01Undo a misguided attempt to fix speling errors from long ago. UCBTodd C. Miller
copyrights say "acknowledgement", not "acknowledgment". You cannot just go changing the text of a license willy-nilly.
2003-05-29merge COMPATIBILITY into STANDARDS;Jason McIntyre
2003-05-02Zap unused STRIP_TRAILING_SLASH macro.Nils Nordman
Ok millert@.
2003-03-13Use the return value of strcpy() to detect ENAMETOOLONG instead ofTodd C. Miller
doing an extra strlen; deraadt@ OK
2003-03-13lots of sprintf -> snprintf and strcpy -> strlcpy; checked by teduTheo de Raadt
2003-03-12more .LiTheo de Raadt
2003-01-06Set directory mode/user/times on the post-order pass, not pre-order.Todd C. Miller
Fixes a problem with "cp -R" (and probably cp -p) with directories that do not grant the owner write permission. However, we need to know whether or not we created the directory ourselves so stash that fact in fts_pointer (treat it as a boolean) but add a macro to access it for readability. This also allows me to remove the duplicated file times setting code for "cp -p". Closes PR 3058; deraadt@ OK
2002-07-04ansiTheo de Raadt
2002-06-09knfTodd T. Fries
2002-05-30typo; moritz@jodeit.orgTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-11Initial patch.Mike Pechkin
When you give command examples in a manual page prefix them with $ command or # command deraadt@ ok
2001-11-05kill more registers;Mike Pechkin
millert@ ok
2001-09-06o) __progname aria;Mike Pechkin
millert@ ok.
2001-06-25explicit braces to avoid ambiguous elseArtur Grabowski
2001-06-22Avoid printing warnings about things like "is a directory" twice.Todd C. Miller
Found by fgs.
2001-06-06In -p mode, set directory times in post-order pass since otherwise theTodd C. Miller
times get squashed when we add files to the dir. Problem found by Christophe.Deroulers@ens.fr, fix by me.
2001-05-11Explicit mapping type to mmap. (not used yet)Artur Grabowski
2000-11-10- Prefer COMPATIBILITY section after SEE ALSO section.Aaron Campbell
- Insert a missing comma.
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-10-18Add some rudimentary EXAMPLES sections and standardize the way we displayAaron Campbell
existing EXAMPLES sections.
2000-03-21Add HISTORY sections; from FreeBSD. Information originally obtained fromAaron Campbell
"A Quarter Centry of UNIX, Peter H. Salus, Page 41".
2000-03-17Remove hard sentence breaks.Aaron Campbell
2000-02-20setlocale and get rid of unneeded exit() call. millert@ okEric Jackson
1999-09-23Add EXAMPLES.Aaron Campbell
1999-09-23Description of -R option should be first.Aaron Campbell
1999-06-04start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@Aaron Campbell
1999-05-30repairsAaron Campbell
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1999-05-06"cp -f" should unlink the destination before copying. Similar toTodd C. Miller
a patch from FreeBSD (but this is simpler). Closes PR #821
1999-03-10comma splicePaul Janzen
1999-03-03cleanupAaron Campbell
1998-12-15always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netAaron Campbell
1998-11-28start killing redundant .Nm macro arguments (mandoc ``remembers'' the first oneAaron Campbell
it's given)
1998-09-26for -p preserve sticky bitTheo de Raadt
1998-09-14First complete sweep of man pages, bin/. Command/function names previouslyAaron Campbell
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS cleanups, other miscellaneous typos.
1998-07-03Fix handling of trailing slashes. Don't ever strip them, because that'sConstantine Sapuntzakis
the way the user tells us that he really wants a directory. Also, a trailing slash does not mean that the last component is null (in fact, according to POSIX, a component can't be 0 bytes). Rather, the last component is the one directly preceding the trailing slashes.
1998-06-07use MAP_FAILEDTheo de Raadt