summaryrefslogtreecommitdiff
path: root/bin/cp
AgeCommit message (Collapse)Author
1997-11-08spellingTodd T. Fries
1997-11-08spellingTodd T. Fries
1997-09-21$OpenBSD$Theo de Raadt
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
Also, use MAXPATHLEN, not MAXPATHLEN+1
1997-07-31improve error message (yes I know mmap(2) isn't used yet.)kstailey
1997-07-23tabifykstailey
1997-05-28bad usage line; oster@cs.usask.caTheo de Raadt
1997-04-05Patch from BSDI (via Keith Bostic, via NetBSD):Thorsten Lockert
>NFS doesn't support chflags; ignore errors unless there's reason >to believe we're losing bits. (Note, this still won't be right >if the server supports flags and we were trying to *remove* flags >on a file that we copied, i.e., that we didn't create.)
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
Fixes core dump problem with ``-p'' and symbolic links. Noted by Carsten Hammer <chammer@post.uni-bielefeld.de>.
1997-01-26support for lchown(2) if "-p" is usedkstailey
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
stat the pathname "" in order to decide that the pathname "/" is a directory. This caused `cp kernel /' to fail if the kernel has the POSIX behaviour of not allowing the pathname "" to be an alias for ".". It presumably also caused `cp /etc/motd /' to fail in the unlikely event that "." is not stat'able. Be more careful about concatenating pathnames: don't check that the pathname fits until prefixes have been discarded (the check was too strict). Print the final pathname in error messages. Terminate the target directory name properly for error messages. Don't add a slash between components if there is already a slash. Fix from FreeBSD
1996-08-02zap getopt() case of -?, come on, it is the default!Theo de Raadt
1996-06-23update rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt