diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-11-09 20:03:30 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-11-09 20:03:30 +0000 |
commit | 3399c71b5a089e0d41c27770aabcc054b4738896 (patch) | |
tree | 6c82a65e8a0598adc71cc609693577b523bf1106 /bin | |
parent | abb8e107a9109532d1d2593988e04bd8b47302de (diff) |
Handle dir not readable case. Problem noted by chefren. ok hshoexer@ jaredy@
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cp/cp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c index fb88e0bcee9..766c43fd78f 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cp.c,v 1.29 2004/12/13 20:25:34 otto Exp $ */ +/* $OpenBSD: cp.c,v 1.30 2005/11/09 20:03:29 otto Exp $ */ /* $NetBSD: cp.c,v 1.14 1995/09/07 06:14:51 jtc Exp $ */ /* @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)cp.c 8.5 (Berkeley) 4/29/95"; #else -static char rcsid[] = "$OpenBSD: cp.c,v 1.29 2004/12/13 20:25:34 otto Exp $"; +static char rcsid[] = "$OpenBSD: cp.c,v 1.30 2005/11/09 20:03:29 otto Exp $"; #endif #endif /* not lint */ @@ -279,6 +279,7 @@ copy(char *argv[], enum op type, int fts_options) for (rval = 0; (curr = fts_read(ftsp)) != NULL;) { switch (curr->fts_info) { case FTS_NS: + case FTS_DNR: case FTS_ERR: warnx("%s: %s", curr->fts_path, strerror(curr->fts_errno)); |