diff options
author | gavin <gavin@FreeBSD.org> | 2010-01-17 09:37:31 +0000 |
---|---|---|
committer | gavin <gavin@FreeBSD.org> | 2010-01-17 09:37:31 +0000 |
commit | b89a432ee1889ec29b188c301b5171234c9247bc (patch) | |
tree | 73f412a60e3f3b398602ff339d9c2ead04632a9c /bin/cp/utils.c | |
parent | a59ae58903333ab970f619900c812a3159a80a37 (diff) | |
download | FreeBSD-src-b89a432ee1889ec29b188c301b5171234c9247bc.zip FreeBSD-src-b89a432ee1889ec29b188c301b5171234c9247bc.tar.gz |
Implement an "-x" option to cp(1), for compatibility with Linux and
feature parity with du(1) and similar: When set, cp(1) will not traverse
mount points.
Initial patch by: Graham J Lee leeg teaching.physics.ox.ac.uk
PR: bin/88056
Initial patch by: Graham J Lee leeg teaching.physics.ox.ac.uk
Approved by: ed (mentor)
MFC after: 1 month
Diffstat (limited to 'bin/cp/utils.c')
-rw-r--r-- | bin/cp/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cp/utils.c b/bin/cp/utils.c index 63eba42..b075eac 100644 --- a/bin/cp/utils.c +++ b/bin/cp/utils.c @@ -518,8 +518,8 @@ usage(void) { (void)fprintf(stderr, "%s\n%s\n", -"usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file target_file", -" cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file ... " +"usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file target_file", +" cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file ... " "target_directory"); exit(EX_USAGE); } |