summaryrefslogtreecommitdiffstats
path: root/bin/cp
AgeCommit message (Expand)AuthorFilesLines
2019-09-02More correction of section 3 layout. directory->opendir, fts->fts_open,deraadt1-3/+3
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt2-6/+6
2019-01-28Implement cp -a ("archive" mode)jca3-12/+22
2018-09-07Revert earlier revert.martijn2-30/+53
2018-09-07Backout recent cp(1) changes; they broke texlive's mktexlsr(1)stsp2-53/+30
2018-09-07Rename dne in copy_file to exists to be more consistent with the othermartijn2-9/+9
2018-09-07Also verify a overwrite for the copy of a fifo, link and device node.martijn2-7/+14
2018-09-07Move the question to allow a copy to its own function.martijn1-13/+26
2018-09-07The combination of -v and -i and the deny of a copy would cause the copymartijn2-10/+13
2017-06-28add -v to SYNOPSIS and STANDARDS;jmc1-3/+7
2017-06-27fix a few lines of unusual lengthtedu1-3/+4
2017-06-27add a -v verbose flag to cp, mv, and rm. useful for monitoring progress,tedu3-10/+30
2016-10-14delete useless setlocale(3);schwarze1-6/+3
2016-03-07Make cp -i behave as mv -i or rm -i, independently of whether stdintb1-2/+2
2015-12-26Set the times, mode, and flags on symlinks when doing cp -p (or mv acrossguenther2-18/+3
2015-11-16rename link to name to avoid shadowing the functiontedu1-6/+6
2015-10-09Change all tame callers to namechange to pledge(2).deraadt1-3/+3
2015-10-08Try again. Both -R and -p prevent use of tame, but other cases can use it.deraadt1-1/+9
2015-10-08ah, fchflags. We will come back to this issue laterderaadt1-6/+1
2015-10-07We cannot tame if -R is specified, because mknod and mkfifo may be called.deraadt1-1/+6
2015-05-07Whoops; missed updating a setfile() call.guenther1-2/+2
2015-05-03Preserve times to nanosecond precision instead of just microsecond.guenther1-12/+15
2015-01-19cleanup sys/param.h commentderaadt1-2/+2
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt3-8/+10
2014-05-21Use errc/warnc to simplify code.guenther1-6/+4
2014-04-24calloc is better. from Peter Malonetedu1-4/+3
2014-03-19there is no need for rcp anymoretedu1-3/+2
2014-01-29same tweak as per ch* utils: for -H, remove brackets in description;jmc1-3/+3
2013-01-18command-line (adj.) -> command line (n.);jmc1-3/+3
2012-12-04remove some unnecessary sys/cdefs.h inclusionsderaadt1-3/+1
2012-08-28Don't order file and dir creation, no measurable effect, ffsotto1-29/+2
2012-07-11When copying a file sparsely, truncate the resulting file based on thematthew1-2/+2
2012-04-11if we ever activate that, this may need fixingespie1-1/+2
2011-06-23set set*id bits only if the target did not exist and -p was not used;otto1-2/+3
2011-06-15consistently specify that -f and -i override previous options in eachtedu1-9/+11
2011-06-15the last of -f or -i is the lucky winner. problem noticed by jan stary.tedu1-4/+10
2010-09-03add an EXIT STATUS section for /bin;jmc1-3/+3
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-9/+1
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewjmc1-3/+3
2009-01-04replace hardcoded exit values with .Ex macros;sobrado1-5/+3
2007-11-04some small nonfunctional tweaks. ok beck millerttedu1-19/+5
2007-09-22warn should return an error message for chmod, not for chownsobrado1-3/+3
2007-09-16"source" and "target" can be either files or directories;sobrado2-18/+20
2007-07-26STDIN_FILENO is better than fileno(stdin); zinovik@cs.karelia.ruderaadt1-3/+3
2007-05-31convert to new .Dd format;jmc1-2/+2
2007-05-29- consistent STANDARDS blurbjmc1-7/+7
2007-04-06when copying regular files, look for blocks of zeroes. when we see them,tedu2-5/+31
2006-04-25various small lint cleanups; ok ottoderaadt2-5/+6
2006-03-17Call fts_close(); from NetBSD's Coverity analysis; ok jaredy@ millert@otto1-2/+3
2005-11-09Handle dir not readable case. Problem noted by chefren. ok hshoexer@ jaredy@otto1-2/+3