public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f994371
)
added test for directory
author
eck
<none@none>
Tue, 6 Mar 1990 13:10:35 +0000
(13:10 +0000)
committer
eck
<none@none>
Tue, 6 Mar 1990 13:10:35 +0000
(13:10 +0000)
util/arch/archiver.c
patch
|
blob
|
history
diff --git
a/util/arch/archiver.c
b/util/arch/archiver.c
index
f5cbf94
..
7b1c2b6
100644
(file)
--- a/
util/arch/archiver.c
+++ b/
util/arch/archiver.c
@@
-415,6
+415,10
@@
char *mess;
error(FALSE, "cannot find %s\n", name);
return;
}
+ else if (status.st_mode & S_IFDIR) {
+ error(FALSE, "%s is a directory (ignored)\n", name);
+ return;
+ }
else if ((src_fd = open(name, 0)) < 0) {
error(FALSE, "cannot open %s\n", name);
return;