aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1996-02-19 05:56:34 +0000
committerPaul Traina <pst@FreeBSD.org>1996-02-19 05:56:34 +0000
commitee4f505e5e1a0e1b9b1a6d67e24cecd9db0208f7 (patch)
treee5ec9bf8648f97ffb39ef868e66d31cd084d876b /bin
parent91e94a1d94f3991a234df78b9082b328bbe4989e (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/cp/cp.c5
-rw-r--r--bin/cp/utils.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c
index cfbcd5636f3a..456b0f2c6d09 100644
--- a/bin/cp/cp.c
+++ b/bin/cp/cp.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cp.c,v 1.6 1995/05/30 00:06:21 rgrimes Exp $
+ * $Id: cp.c,v 1.8 1996/02/19 00:43:42 wosch Exp $
*/
#ifndef lint
@@ -104,7 +104,7 @@ main(argc, argv)
int Hflag, Lflag, Pflag, ch, fts_options, r;
char *target;
- Hflag = Lflag = Pflag = Rflag = 0;
+ Hflag = Lflag = Pflag = 0;
while ((ch = getopt(argc, argv, "HLPRfipr")) != EOF)
switch (ch) {
case 'H':
@@ -134,7 +134,6 @@ main(argc, argv)
case 'r':
rflag = 1;
break;
- case '?':
default:
usage();
break;
diff --git a/bin/cp/utils.c b/bin/cp/utils.c
index 0aa480d7b163..e77140ea8da5 100644
--- a/bin/cp/utils.c
+++ b/bin/cp/utils.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: utils.c,v 1.5 1995/10/03 12:55:01 bde Exp $
+ * $Id: utils.c,v 1.7 1996/02/19 00:43:44 wosch Exp $
*/
#ifndef lint
@@ -281,7 +281,7 @@ void
usage()
{
(void)fprintf(stderr, "%s\n%s\n",
-"usage: cp [-R [-H | -L | -P] [-fip] src target",
-" cp [-R [-H | -L | -P] [-fip] src1 ... srcN directory");
+"usage: cp [-R [-H | -L | -P]] [-fip] src target",
+" cp [-R [-H | -L | -P]] [-fip] src1 ... srcN directory");
exit(1);
}