]> granicus.if.org Git - file/commitdiff
let normal magic deal with documents without summary info.
authorChristos Zoulas <christos@zoulas.com>
Wed, 3 Dec 2008 22:54:02 +0000 (22:54 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 3 Dec 2008 22:54:02 +0000 (22:54 +0000)
src/readcdf.c

index 1c436352e10528c2c71d3e993025ad594bc08721..a6126ce6a9f83b0b60823184c8324b21747a0c8c 100644 (file)
@@ -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 <stdio.h>
@@ -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