summaryrefslogtreecommitdiff
path: root/src/magic.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2020-06-17 01:11:26 +0000
committerXin LI <delphij@FreeBSD.org>2020-06-17 01:11:26 +0000
commit2d24dbcf45a851fa5c7960160b7b4a28ff373558 (patch)
tree6ed1c5484166da73032c8f6ed3bb82a5dadf914a /src/magic.c
parentf210d1e9efd4183d390c24c9ea576896222d4540 (diff)
Notes
Diffstat (limited to 'src/magic.c')
-rw-r--r--src/magic.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/magic.c b/src/magic.c
index da5baf108e5d..17a7077d8428 100644
--- a/src/magic.c
+++ b/src/magic.c
@@ -33,7 +33,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: magic.c,v 1.111 2019/05/07 02:27:11 christos Exp $")
+FILE_RCSID("@(#)$File: magic.c,v 1.112 2020/06/08 19:44:10 christos Exp $")
#endif /* lint */
#include "magic.h"
@@ -463,8 +463,7 @@ file_or_fd(struct magic_set *ms, const char *inname, int fd)
}
if (fd != -1) {
- if (!okstat)
- okstat = fstat(fd, &sb) == 0;
+ okstat = fstat(fd, &sb) == 0;
if (okstat && S_ISFIFO(sb.st_mode))
ispipe = 1;
if (inname == NULL)