Module Name:    src
Committed By:   christos
Date:           Wed Sep 28 13:50:09 UTC 2011

Modified Files:
        src/external/bsd/file/dist/src: readcdf.c

Log Message:
fix cdf mime output on cdf files (from file HEAD)


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/bsd/file/dist/src/readcdf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/file/dist/src/readcdf.c
diff -u src/external/bsd/file/dist/src/readcdf.c:1.5 src/external/bsd/file/dist/src/readcdf.c:1.6
--- src/external/bsd/file/dist/src/readcdf.c:1.5	Sat Sep 17 06:46:52 2011
+++ src/external/bsd/file/dist/src/readcdf.c	Wed Sep 28 09:50:09 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: readcdf.c,v 1.5 2011/09/17 10:46:52 joerg Exp $	*/
+/*	$NetBSD: readcdf.c,v 1.6 2011/09/28 13:50:09 christos Exp $	*/
 
 /*-
  * Copyright (c) 2008 Christos Zoulas
@@ -31,7 +31,7 @@
 #if 0
 FILE_RCSID("@(#)$File: readcdf.c,v 1.26 2011/08/26 13:38:28 christos Exp $")
 #else
-__RCSID("$NetBSD: readcdf.c,v 1.5 2011/09/17 10:46:52 joerg Exp $");
+__RCSID("$NetBSD: readcdf.c,v 1.6 2011/09/28 13:50:09 christos Exp $");
 #endif
 #endif
 
@@ -154,6 +154,9 @@ cdf_file_property_info(struct magic_set 
         if (!NOTMIME(ms)) {
 		if (str == NULL)
 			return 0;
+		if (file_printf(ms, "application/%s", str) == -1)
+			return -1;
+
         }
         return 1;
 }

Reply via email to