summaryrefslogtreecommitdiffstats
path: root/bin/cp/extern.h
Commit message (Collapse)AuthorAgeFilesLines
* Add an option to allow copying of a hierarchy while linking he regular files.julian2006-08-241-1/+1
| | | | | | Bikeshedded to death on: hackers Submitted by:andersonatcenttech.com MFC in: 1 month
* Attempt to complete the userspace integration of POSIX.1e extended ACLs.csjp2005-09-051-0/+2
| | | | | | | | | | | | | | This includes adding support for ACLs into cp(1) and mv(1) userspace utilities. For mv(1), if _PC_ACL_EXTENDED is in effect for the source AND destination operands, the destination file's ACLs shall reflect the source. For cp(1), if _PC_ACL_EXTENDED is in effect for both source and destination operands, and -p has been specified, the ACLs from the source shall be preserved on the destination. MFC after: 1 month
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* Use the correct data type and qualifier for signal flag.mdodd2003-04-071-1/+1
|
* Add a SIGINFO handler.mdodd2003-04-071-0/+1
|
* Constify and staticify for lint.markm2002-10-181-2/+2
|
* Add the -n option, which automatically answers "no" to the overwrite question.johan2002-07-231-1/+1
| | | | | | | PR: 7828 Suggested by: Daniel O'Connor <doconnor@gsoft.com.au> Approved by: sheldonh (mentor) MFC after: 2 weeks
* Fixed some style bugs in revs 1.1 and 1.4.bde2002-02-231-4/+4
|
* Fix warnings inspired by lint, a commercial lint and WARNS=4.markm2002-02-221-6/+4
|
* Modernization effort for bin/c*:imp2002-02-021-6/+6
| | | | | | | | | | | | o __P has been reoved o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. Approved by: arch@, new style(9)
* Removed the broken code which claimed to lose the set[ug]id bits inbde2001-06-111-2/+1
| | | | | | | | | | | | | | | | | | | | | the !(pflag && setfile()) case for regular files unless the copy is owned by the same user and group. These bits have already been lost (or never gained) in the correct way. The code didn't actually lose the bits; it depended on them being lost already (apparently in all cases) and attempted to gain them as necessary, but it often gained them (and sometimes collateral bits) when wrong: - pflag && setfile() == 0 case (i.e., for a successful cp -p): setfile() copies all the attributes as correctly as possible (as specified by POSIX), and we sometimes messed up the up the mode by setting it again. Also, if the file is immutable, then setting the mode again gave spurious errors (PR 20646). - !pflag case. If the target is created, POSIX requires it to not have the set[ug]id bits, but we sometimes copied them from the source. If the target already exists, POSIX requires its mode to be unchanged, but we sometimes copied the whole mode from the source. PR: 20646 MFC after: 4 weeks
* Migrate from using MAXPATHLEN to MAX_PATH. Use strlcpy to copy theimp2001-05-161-1/+1
| | | | strings.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Add a verbose mode to show what files are being copied.mharo1999-08-261-2/+2
| | | | | | Idea taken from obrien. Reviewed by: obrien
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Option -f implemented (remove + create)wosch1996-03-081-2/+2
| | | | | | | | | option -f and -i are exclusive respond `Y' is equal to `y' fix usage string remove isatty(3) check Reviewed by: pst
* delete my last commitwosch1996-02-191-1/+1
| | | | Submitted by: pst, ache
* Option -f implemented (remove + create)wosch1996-02-181-2/+2
| | | | | | | option -f and -i are exclusive all flag variables initialized with zero respond `Y' is equal to `y' update usage string
* Added $Id$dg1994-09-241-0/+1
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+55
OpenPOWER on IntegriCloud