summaryrefslogtreecommitdiff
path: root/bin/cp
AgeCommit message (Expand)Author
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-08Try again. Both -R and -p prevent use of tame, but other cases can use it.Theo de Raadt
2015-10-08ah, fchflags. We will come back to this issue laterTheo de Raadt
2015-10-07We cannot tame if -R is specified, because mknod and mkfifo may be called.Theo de Raadt
2015-05-07Whoops; missed updating a setfile() call.Philip Guenther
2015-05-03Preserve times to nanosecond precision instead of just microsecond.Philip Guenther
2015-01-19cleanup sys/param.h commentTheo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-05-21Use errc/warnc to simplify code.Philip Guenther
2014-04-24calloc is better. from Peter MaloneTed Unangst
2014-03-19there is no need for rcp anymoreTed Unangst
2014-01-29same tweak as per ch* utils: for -H, remove brackets in description;Jason McIntyre
2013-01-18command-line (adj.) -> command line (n.);Jason McIntyre
2012-12-04remove some unnecessary sys/cdefs.h inclusionsTheo de Raadt
2012-08-28Don't order file and dir creation, no measurable effect, ffsOtto Moerbeek
2012-07-11When copying a file sparsely, truncate the resulting file based on theMatthew Dempsky
2012-04-11if we ever activate that, this may need fixingMarc Espie
2011-06-23set set*id bits only if the target did not exist and -p was not used;Otto Moerbeek
2011-06-15consistently specify that -f and -i override previous options in eachTed Unangst
2011-06-15the last of -f or -i is the lucky winner. problem noticed by jan stary.Ted Unangst
2010-09-03add an EXIT STATUS section for /bin;Jason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
2009-01-04replace hardcoded exit values with .Ex macros;Igor Sobrado
2007-11-04some small nonfunctional tweaks. ok beck millertTed Unangst
2007-09-22warn should return an error message for chmod, not for chownIgor Sobrado
2007-09-16"source" and "target" can be either files or directories;Igor Sobrado
2007-07-26STDIN_FILENO is better than fileno(stdin); zinovik@cs.karelia.ruTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29- consistent STANDARDS blurbJason McIntyre
2007-04-06when copying regular files, look for blocks of zeroes. when we see them,Ted Unangst
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
2004-12-10sort options + sync usage();Jason McIntyre
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
2003-07-29spacingTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2003-06-01Undo a misguided attempt to fix speling errors from long ago. UCBTodd C. Miller
2003-05-29merge COMPATIBILITY into STANDARDS;Jason McIntyre
2003-05-02Zap unused STRIP_TRAILING_SLASH macro.Nils Nordman
2003-03-13Use the return value of strcpy() to detect ENAMETOOLONG instead ofTodd C. Miller
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
2002-07-04ansiTheo de Raadt