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_05~259 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddf12dfcfd6333d2d732dd310a4d7bd4674bf188;p=file let normal magic deal with documents without summary info. --- diff --git a/src/readcdf.c b/src/readcdf.c index 28b61ee9..1bd4cb8b 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.9 2008/10/20 19:04:12 christos Exp $") +FILE_RCSID("@(#)$File: readcdf.c,v 1.10 2008/12/03 22:54:02 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