diff options
author | mharo <mharo@FreeBSD.org> | 1999-08-29 07:58:19 +0000 |
---|---|---|
committer | mharo <mharo@FreeBSD.org> | 1999-08-29 07:58:19 +0000 |
commit | 5e14615656821e43d8611a79c78c045e4d636190 (patch) | |
tree | 8b96b3dcce9330ec35a8a12894863500d1957d31 /bin/cp/utils.c | |
parent | bd14e46d740faa5132d836cc532864ff7f41f228 (diff) | |
download | FreeBSD-src-5e14615656821e43d8611a79c78c045e4d636190.zip FreeBSD-src-5e14615656821e43d8611a79c78c045e4d636190.tar.gz |
brucify and move printf() to catch cases of special files
Diffstat (limited to 'bin/cp/utils.c')
-rw-r--r-- | bin/cp/utils.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/cp/utils.c b/bin/cp/utils.c index 2c02947..368886a 100644 --- a/bin/cp/utils.c +++ b/bin/cp/utils.c @@ -118,9 +118,6 @@ copy_file(entp, dne) rval = 0; - if (vflag) - printf("%s -> %s\n",entp->fts_path, to.p_path); - /* * Mmap and write if less than 8M (the limit is so we don't totally * trash memory on big files. This is really a minor hack, but it @@ -323,8 +320,9 @@ setfile(fs, fd) void usage() { + (void)fprintf(stderr, "%s\n%s\n", -"usage: cp [-R [-H | -L | -P]] [-f | -i] [-p] [-v] src target", -" cp [-R [-H | -L | -P]] [-f | -i] [-p] [-v] src1 ... srcN directory"); +"usage: cp [-R [-H | -L | -P]] [-f | -i] [-pv] src target", +" cp [-R [-H | -L | -P]] [-f | -i] [-pv] src1 ... srcN directory"); exit(1); } |