Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/file/dist/src fix cdf mime output on cdf files ...
details: https://anonhg.NetBSD.org/src/rev/02cd38efb278
branches: trunk
changeset: 769970:02cd38efb278
user: christos <christos%NetBSD.org@localhost>
date: Wed Sep 28 13:50:09 2011 +0000
description:
fix cdf mime output on cdf files (from file HEAD)
diffstat:
external/bsd/file/dist/src/readcdf.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r f30d2b18272f -r 02cd38efb278 external/bsd/file/dist/src/readcdf.c
--- a/external/bsd/file/dist/src/readcdf.c Wed Sep 28 11:50:42 2011 +0000
+++ b/external/bsd/file/dist/src/readcdf.c Wed Sep 28 13:50:09 2011 +0000
@@ -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 @@
if (!NOTMIME(ms)) {
if (str == NULL)
return 0;
+ if (file_printf(ms, "application/%s", str) == -1)
+ return -1;
+
}
return 1;
}
Home |
Main Index |
Thread Index |
Old Index