From ec78aa2f9c8a7bcacdb40b4024244408ba2c979d Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Mon, 20 Sep 2010 20:16:08 +0000 Subject: Apply Debian code patches from Debian package 5.04-6. --- src/fsmagic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fsmagic.c b/src/fsmagic.c index de837b04..b80d74a9 100644 --- a/src/fsmagic.c +++ b/src/fsmagic.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: fsmagic.c,v 1.61 2010/07/21 16:47:17 christos Exp $") +FILE_RCSID("@(#)$File: fsmagic.c,v 1.62 2010/09/20 20:16:08 rrt Exp $") #endif /* lint */ #include "magic.h" @@ -134,7 +134,8 @@ file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb) if (file_printf(ms, "cannot open `%s' (%s)", fn, strerror(errno)) == -1) return -1; - return 1; + ms->event_flags |= EVENT_HAD_ERR; + return -1; } if (!mime) { -- cgit v1.2.1