From 2203d253d766932179c9167a521e50632817d726 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 28 Sep 2011 13:50:09 +0000 Subject: [PATCH] fix cdf mime output on cdf files (from file HEAD) --- external/bsd/file/dist/src/readcdf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/external/bsd/file/dist/src/readcdf.c b/external/bsd/file/dist/src/readcdf.c index 6f823ef8d09d..d258464eb8c4 100644 --- a/external/bsd/file/dist/src/readcdf.c +++ b/external/bsd/file/dist/src/readcdf.c @@ -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 *ms, const cdf_property_info_t *info, if (!NOTMIME(ms)) { if (str == NULL) return 0; + if (file_printf(ms, "application/%s", str) == -1) + return -1; + } return 1; }