From: Christos Zoulas Date: Wed, 3 Dec 2008 22:54:02 +0000 (+0000) Subject: let normal magic deal with documents without summary info. X-Git-Tag: FILE5_00~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a59143c9b65b9dacf7e7b1d0be2b023b43eb6349;p=file let normal magic deal with documents without summary info. --- diff --git a/src/readcdf.c b/src/readcdf.c index 1c436352..a6126ce6 100644 --- a/src/readcdf.c +++ b/src/readcdf.c @@ -26,7 +26,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: readcdf.c,v 1.8 2008/10/20 17:20:41 christos Exp $") +FILE_RCSID("@(#)$File: readcdf.c,v 1.9 2008/10/20 19:04:12 christos Exp $") #endif #include @@ -233,7 +233,12 @@ file_trycdf(struct magic_set *ms, int fd, const unsigned char *buf, #endif if ((i = cdf_read_summary_info(fd, &h, &sat, &ssat, &sst, &dir, &scn)) == -1) { + /* Some files don't have summary info! */ +#ifdef notyet file_error(ms, errno, "Can't read summary_info"); +#else + i = 0; +#endif goto out4; } #ifdef CDF_DEBUG