summaryrefslogtreecommitdiffstats
path: root/bin/cp/utils.c
AgeCommit message (Expand)AuthorFilesLines
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-4/+4
2019-01-28Implement cp -a ("archive" mode)jca1-3/+3
2018-09-07Revert earlier revert.martijn1-17/+36
2018-09-07Backout recent cp(1) changes; they broke texlive's mktexlsr(1)stsp1-36/+17
2018-09-07Rename dne in copy_file to exists to be more consistent with the othermartijn1-5/+5
2018-09-07Also verify a overwrite for the copy of a fifo, link and device node.martijn1-1/+7
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 copymartijn1-2/+2
2017-06-27add a -v verbose flag to cp, mv, and rm. useful for monitoring progress,tedu1-3/+3
2015-12-26Set the times, mode, and flags on symlinks when doing cp -p (or mv acrossguenther1-16/+2
2015-11-16rename link to name to avoid shadowing the functiontedu1-6/+6
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 wherederaadt1-3/+4
2014-04-24calloc is better. from Peter Malonetedu1-4/+3
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
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-9/+1
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;sobrado1-4/+4
2007-04-06when copying regular files, look for blocks of zeroes. when we see them,tedu1-4/+26
2004-12-10sort options + sync usage();jmc1-4/+4
2003-11-24madvise mmapped memory (not used code)mickey1-2/+3
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).millert1-3/+3
2003-07-29spacingderaadt1-5/+5
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert1-7/+3
2003-06-01Undo a misguided attempt to fix speling errors from long ago. UCBmillert1-3/+3
2002-07-04ansideraadt1-20/+9
2002-05-30typo; moritz@jodeit.orgderaadt1-3/+3
2001-11-05kill more registers;mpech1-3/+3
2001-09-06o) __progname aria;mpech1-5/+7
2001-06-25explicit braces to avoid ambiguous elseart1-3/+4
2001-05-11Explicit mapping type to mmap. (not used yet)art1-3/+3
1999-05-06"cp -f" should unlink the destination before copying. Similar tomillert1-3/+10
1998-09-26for -p preserve sticky bitderaadt1-5/+5
1998-06-07use MAP_FAILEDderaadt1-3/+3
1998-05-18readlink(path, buf, sizeof buf-1). Never forget that -1.deraadt1-3/+3
1997-11-08spellingtodd1-3/+3
1997-09-01i am bored enough to fix terminal space/tab ugliesderaadt1-3/+3
1997-07-31improve error message (yes I know mmap(2) isn't used yet.)kstailey1-3/+3
1997-05-28bad usage line; oster@cs.usask.caderaadt1-4/+4
1997-04-05Patch from BSDI (via Keith Bostic, via NetBSD):tholo1-11/+20
1997-02-25Better fix for -p and links.millert1-14/+19
1997-02-24Only update owner (via lchown) when dealing with symbolic links.millert1-18/+24
1997-01-26support for lchown(2) if "-p" is usedkstailey1-11/+15
1996-06-23update rcsidderaadt1-1/+2
1995-10-18initial import of NetBSD treederaadt1-0/+289