]> 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 28b61ee9e5b35088bb8585da7e636d5d1345bf25..1bd4cb8b0ece567affa06c9a60b9f7a6abe175fb 100644 (file)
@@ -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 <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