Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
safe_create_leading_directories: fix race that could give a false negative
[gitweb.git]
/
builtin
/
grep.c
diff --git
a/builtin/grep.c
b/builtin/grep.c
index a7e8df0d409fd431b71d1458cde6252ae119bf18..0654e0b0f693f9cdd4ba2d7f84c110f7ef8b11b4 100644
(file)
--- a/
builtin/grep.c
+++ b/
builtin/grep.c
@@
-932,7
+932,7
@@
int cmd_grep(int argc, const char **argv, const char *prefix)
if (!seen_dashdash) {
int j;
for (j = i; j < argc; j++)
- verify_filename(prefix, argv[j]);
+ verify_filename(prefix, argv[j]
, j == i
);
}
paths = get_pathspec(prefix, argv + i);