fixed bug in directory copying errors.
authorElan Amir <elan@ucbvax.Berkeley.EDU>
Thu, 23 Jul 1992 02:38:27 +0000 (18:38 -0800)
committerElan Amir <elan@ucbvax.Berkeley.EDU>
Thu, 23 Jul 1992 02:38:27 +0000 (18:38 -0800)
SCCS-vsn: bin/cp/cp.c 5.34

usr/src/bin/cp/cp.c

index 4bef852..2195ebd 100644 (file)
@@ -15,7 +15,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)cp.c       5.33 (Berkeley) %G%";
+static char sccsid[] = "@(#)cp.c       5.34 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -340,7 +340,7 @@ copy(ftsp)
                                    "%s: %s is a directory (not copied).\n",
                                    progname, curr->fts_path);
                                exit_val = 1;
                                    "%s: %s is a directory (not copied).\n",
                                    progname, curr->fts_path);
                                exit_val = 1;
-                               return;
+                               break;
                        }
                        if (dne) {
                        /*
                        }
                        if (dne) {
                        /*