summaryrefslogtreecommitdiff
path: root/bin/cp/utils.c
AgeCommit message (Expand)Author
2021-11-28Stop using MAXBSIZE to eliminate sys/param.h including (which injects aTheo de Raadt
2021-10-24For open/openat, if the flags parameter does not contain O_CREAT, theTheo de Raadt
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-07Move the question to allow a copy to its own function.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-27add a -v verbose flag to cp, mv, and rm. useful for monitoring progress,Ted Unangst
2015-12-26Set the times, mode, and flags on symlinks when doing cp -p (or mv acrossPhilip Guenther
2015-11-16rename link to name to avoid shadowing the functionTed Unangst
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-04-24calloc is better. from Peter MaloneTed Unangst
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
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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-04-06when copying regular files, look for blocks of zeroes. when we see them,Ted Unangst
2004-12-10sort options + sync usage();Jason McIntyre
2003-11-24madvise mmapped memory (not used code)Michael Shalayeff
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
2002-07-04ansiTheo de Raadt
2002-05-30typo; moritz@jodeit.orgTheo de Raadt
2001-11-05kill more registers;Mike Pechkin
2001-09-06o) __progname aria;Mike Pechkin
2001-06-25explicit braces to avoid ambiguous elseArtur Grabowski
2001-05-11Explicit mapping type to mmap. (not used yet)Artur Grabowski
1999-05-06"cp -f" should unlink the destination before copying. Similar toTodd C. Miller
1998-09-26for -p preserve sticky bitTheo de Raadt
1998-06-07use MAP_FAILEDTheo de Raadt
1998-05-18readlink(path, buf, sizeof buf-1). Never forget that -1.Theo de Raadt
1997-11-08spellingTodd T. Fries
1997-09-01i am bored enough to fix terminal space/tab ugliesTheo de Raadt
1997-07-31improve error message (yes I know mmap(2) isn't used yet.)kstailey
1997-05-28bad usage line; oster@cs.usask.caTheo de Raadt
1997-04-05Patch from BSDI (via Keith Bostic, via NetBSD):Thorsten Lockert
1997-02-25Better fix for -p and links.Todd C. Miller
1997-02-24Only update owner (via lchown) when dealing with symbolic links.Todd C. Miller
1997-01-26support for lchown(2) if "-p" is usedkstailey
1996-06-23update rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt