summaryrefslogtreecommitdiff
path: root/bin/cp
AgeCommit message (Collapse)Author
2002-07-04ansiTheo de Raadt
2002-06-09knfTodd T. Fries
2002-05-30typo; moritz@jodeit.orgTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-11Initial patch.Mike Pechkin
When you give command examples in a manual page prefix them with $ command or # command deraadt@ ok
2001-11-05kill more registers;Mike Pechkin
millert@ ok
2001-09-06o) __progname aria;Mike Pechkin
millert@ ok.
2001-06-25explicit braces to avoid ambiguous elseArtur Grabowski
2001-06-22Avoid printing warnings about things like "is a directory" twice.Todd C. Miller
Found by fgs.
2001-06-06In -p mode, set directory times in post-order pass since otherwise theTodd C. Miller
times get squashed when we add files to the dir. Problem found by Christophe.Deroulers@ens.fr, fix by me.
2001-05-11Explicit mapping type to mmap. (not used yet)Artur Grabowski
2000-11-10- Prefer COMPATIBILITY section after SEE ALSO section.Aaron Campbell
- Insert a missing comma.
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-10-18Add some rudimentary EXAMPLES sections and standardize the way we displayAaron Campbell
existing EXAMPLES sections.
2000-03-21Add HISTORY sections; from FreeBSD. Information originally obtained fromAaron Campbell
"A Quarter Centry of UNIX, Peter H. Salus, Page 41".
2000-03-17Remove hard sentence breaks.Aaron Campbell
2000-02-20setlocale and get rid of unneeded exit() call. millert@ okEric Jackson
1999-09-23Add EXAMPLES.Aaron Campbell
1999-09-23Description of -R option should be first.Aaron Campbell
1999-06-04start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@Aaron Campbell
1999-05-30repairsAaron Campbell
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1999-05-06"cp -f" should unlink the destination before copying. Similar toTodd C. Miller
a patch from FreeBSD (but this is simpler). Closes PR #821
1999-03-10comma splicePaul Janzen
1999-03-03cleanupAaron Campbell
1998-12-15always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netAaron Campbell
1998-11-28start killing redundant .Nm macro arguments (mandoc ``remembers'' the first oneAaron Campbell
it's given)
1998-09-26for -p preserve sticky bitTheo de Raadt
1998-09-14First complete sweep of man pages, bin/. Command/function names previouslyAaron Campbell
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS cleanups, other miscellaneous typos.
1998-07-03Fix handling of trailing slashes. Don't ever strip them, because that'sConstantine Sapuntzakis
the way the user tells us that he really wants a directory. Also, a trailing slash does not mean that the last component is null (in fact, according to POSIX, a component can't be 0 bytes). Rather, the last component is the one directly preceding the trailing slashes.
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-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