projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af0fb21
)
"not removed" doesn't tell you a whole helluva lot
author
Keith Bostic
<bostic@ucbvax.Berkeley.EDU>
Mon, 21 Dec 1987 01:17:26 +0000
(17:17 -0800)
committer
Keith Bostic
<bostic@ucbvax.Berkeley.EDU>
Mon, 21 Dec 1987 01:17:26 +0000
(17:17 -0800)
SCCS-vsn: bin/rm/rm.c 4.21
usr/src/bin/rm/rm.c
patch
|
blob
|
blame
|
history
diff --git
a/usr/src/bin/rm/rm.c
b/usr/src/bin/rm/rm.c
index
51de532
..
8c48e8b
100644
(file)
--- a/
usr/src/bin/rm/rm.c
+++ b/
usr/src/bin/rm/rm.c
@@
-1,4
+1,4
@@
-static char *sccsid = "@(#)rm.c 4.2
0
(Berkeley) %G%";
+static char *sccsid = "@(#)rm.c 4.2
1
(Berkeley) %G%";
/*
* rm - for ReMoving files, directories & trees.
/*
* rm - for ReMoving files, directories & trees.
@@
-200,7
+200,8
@@
rm(arg, level)
}
rm: if (unlink(arg) < 0) {
if (!fflg || iflg) {
}
rm: if (unlink(arg) < 0) {
if (!fflg || iflg) {
- fprintf(stderr, "rm: %s not removed\n", arg);
+ fprintf(stderr, "rm: %s: ", arg);
+ perror((char *)NULL);
errcode++;
}
return (0);
errcode++;
}
return (0);