summaryrefslogtreecommitdiffstats
path: root/bin/cp/utils.c
diff options
context:
space:
mode:
authorgavin <gavin@FreeBSD.org>2010-01-17 09:37:31 +0000
committergavin <gavin@FreeBSD.org>2010-01-17 09:37:31 +0000
commitb89a432ee1889ec29b188c301b5171234c9247bc (patch)
tree73f412a60e3f3b398602ff339d9c2ead04632a9c /bin/cp/utils.c
parenta59ae58903333ab970f619900c812a3159a80a37 (diff)
downloadFreeBSD-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.c4
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);
}
OpenPOWER on IntegriCloud