artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60ed151
)
Don't stop at the first successful test unless it has generated some
author
nicm
<nicm@openbsd.org>
Fri, 29 May 2015 15:11:08 +0000
(15:11 +0000)
committer
nicm
<nicm@openbsd.org>
Fri, 29 May 2015 15:11:08 +0000
(15:11 +0000)
output.
usr.bin/file/magic-test.c
patch
|
blob
|
history
diff --git
a/usr.bin/file/magic-test.c
b/usr.bin/file/magic-test.c
index
7394c0f
..
35dbf10
100644
(file)
--- a/
usr.bin/file/magic-test.c
+++ b/
usr.bin/file/magic-test.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: magic-test.c,v 1.
4 2015/05/29 14:52:10
nicm Exp $ */
+/* $OpenBSD: magic-test.c,v 1.
5 2015/05/29 15:11:08
nicm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@
-1087,7
+1087,7
@@
magic_test_line(struct magic_line *ml, struct magic_state *ms)
ms->offset = offset;
magic_test_line(child, ms);
}
- return (
1
);
+ return (
ml->result != NULL
);
}
const char *