summaryrefslogtreecommitdiffstats
path: root/bin/cp
Commit message (Collapse)AuthorAgeFilesLines
* Option -f implemented (remove + create)wosch1996-03-084-17/+37
| | | | | | | | | option -f and -i are exclusive respond `Y' is equal to `y' fix usage string remove isatty(3) check Reviewed by: pst
* Don't initialize udata, remove bogus case, fix usage stringpst1996-02-192-6/+5
|
* delete my last commitwosch1996-02-194-35/+14
| | | | Submitted by: pst, ache
* Option -f implemented (remove + create)wosch1996-02-184-18/+39
| | | | | | | option -f and -i are exclusive all flag variables initialized with zero respond `Y' is equal to `y' update usage string
* Preserve sticky bit for `cp -pR'. It was already preserved for `cp -R'.bde1995-10-031-2/+3
| | | | This also fixes loss of the sticky bit for `mv' across file systems.
* Don't unlink the target file if the copy failed. This behaviour isn'tbde1995-06-141-8/+7
| | | | | | | | | | documented and is incompatible with gnu cp. It has very few good effects (it recovers some disk space) and many bad ones: - special files are unlinked after certain errors. - the data may not be recoverable if the source is a special file or fifo. - unlinking destroys the target attributes as well as the target data. - unlinking doesn't actually remove the target data if the target is multiply linked.
* Remove trailing whitespace.rgrimes1995-05-302-19/+19
| | | | Reviewed by: phk
* Add braces to fix wrong if-if-else-if nesting that broke `cp -pR' forbde1995-04-021-4/+6
| | | | fifos.
* Fix bogus format string; fixes problem reported by Wolfram Schneider.dg1995-01-251-2/+2
|
* Don't strip off the last slash in the pathname "/". cp used tobde1994-12-301-18/+15
| | | | | | | | | | | | | | 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.
* Added $Id$dg1994-09-245-0/+7
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-265-0/+998
OpenPOWER on IntegriCloud