summaryrefslogtreecommitdiff
path: root/bin/cp/cp.c
AgeCommit message (Expand)Author
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-01-28Implement cp -a ("archive" mode)Jeremie Courreges-Anglas
2018-09-07Revert earlier revert.Martijn van Duren
2018-09-07Backout recent cp(1) changes; they broke texlive's mktexlsr(1)Stefan Sperling
2018-09-07Rename dne in copy_file to exists to be more consistent with the otherMartijn van Duren
2018-09-07Also verify a overwrite for the copy of a fifo, link and device node.Martijn van Duren
2018-09-07The combination of -v and -i and the deny of a copy would cause the copyMartijn van Duren
2017-06-27fix a few lines of unusual lengthTed Unangst
2017-06-27add a -v verbose flag to cp, mv, and rm. useful for monitoring progress,Ted Unangst
2016-10-14delete useless setlocale(3);Ingo Schwarze
2016-03-07Make cp -i behave as mv -i or rm -i, independently of whether stdintb
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-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
2012-08-28Don't order file and dir creation, no measurable effect, ffsOtto Moerbeek
2007-11-04some small nonfunctional tweaks. ok beck millertTed Unangst
2007-07-26STDIN_FILENO is better than fileno(stdin); zinovik@cs.karelia.ruTheo de Raadt
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
2003-10-30Fix typo in comment; Bruno RoheeTodd 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-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-01-06Set directory mode/user/times on the post-order pass, not pre-order.Todd C. Miller
2002-07-04ansiTheo de Raadt
2002-06-09knfTodd T. Fries
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-06-25explicit braces to avoid ambiguous elseArtur Grabowski
2001-06-22Avoid printing warnings about things like "is a directory" twice.Todd C. Miller
2001-06-06In -p mode, set directory times in post-order pass since otherwise theTodd C. Miller
2000-02-20setlocale and get rid of unneeded exit() call. millert@ okEric Jackson
1999-05-06"cp -f" should unlink the destination before copying. Similar toTodd C. Miller
1998-07-03Fix handling of trailing slashes. Don't ever strip them, because that'sConstantine Sapuntzakis
1997-11-08spellingTodd T. Fries
1997-09-20Don't strip trailing '/' in source, fts(3) now does this for us.Todd C. Miller
1997-09-01i am bored enough to fix terminal space/tab ugliesTheo de Raadt
1997-08-23Strip trailing slashes from source (we already did dest).Todd C. Miller
1997-07-23tabifykstailey
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-12-14-Wall'ing.Michael Shalayeff
1996-10-28Don't strip off the last slash in the pathname "/". cp used toThorsten Lockert