diff options
author | dt <dt@FreeBSD.org> | 1998-06-09 13:42:51 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1998-06-09 13:42:51 +0000 |
commit | a89f496cbf1aff49309b74d4f717d397d95dd30b (patch) | |
tree | 23e49472dd9849842f788f72226c0f758a5ee459 /bin | |
parent | 043f2beb05c1a1cf54217d27001ebce4edd2b340 (diff) | |
download | FreeBSD-src-a89f496cbf1aff49309b74d4f717d397d95dd30b.zip FreeBSD-src-a89f496cbf1aff49309b74d4f717d397d95dd30b.tar.gz |
Print correct error message if we copy an unreadable directory.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cp/cp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c index ecfaf53..bf89011 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -45,7 +45,7 @@ static char const copyright[] = static char sccsid[] = "@(#)cp.c 8.2 (Berkeley) 4/1/94"; #endif static const char rcsid[] = - "$Id: cp.c,v 1.15 1998/05/06 06:50:22 charnier Exp $"; + "$Id: cp.c,v 1.16 1998/05/13 07:25:14 charnier Exp $"; #endif /* not lint */ /* @@ -257,6 +257,7 @@ copy(argv, type, 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)); |