artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81af83d
)
Silently fall back to /etc/magic if ~/.magic can't be opened, ok deraadt stsp
author
nicm
<nicm@openbsd.org>
Fri, 29 May 2015 07:30:28 +0000
(07:30 +0000)
committer
nicm
<nicm@openbsd.org>
Fri, 29 May 2015 07:30:28 +0000
(07:30 +0000)
usr.bin/file/file.c
patch
|
blob
|
history
diff --git
a/usr.bin/file/file.c
b/usr.bin/file/file.c
index
fb7c7b8
..
961b771
100644
(file)
--- a/
usr.bin/file/file.c
+++ b/
usr.bin/file/file.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: file.c,v 1.
39 2015/05/28 19:26:37 jmc
Exp $ */
+/* $OpenBSD: file.c,v 1.
40 2015/05/29 07:30:28 nicm
Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@
-174,8
+174,6
@@
main(int argc, char **argv)
if (home != NULL) {
xasprintf(&magicpath, "%s/.magic", home);
magicfp = fopen(magicpath, "r");
- if (magicfp == NULL && errno != ENOENT)
- err(1, "%s", magicpath);
if (magicfp == NULL)
free(magicpath);
}