diff options
author | Christos Zoulas <christos@zoulas.com> | 2014-08-27 13:00:37 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2014-08-27 13:00:37 +0000 |
commit | 06dd3c89fc4165feea0bf131e692b9d951e99b4f (patch) | |
tree | 6630014942e81261111dfc7982f56d148bdef88f /src/readcdf.c | |
parent | d8f3124da77d405c4c71d13f26ebe3dfc586c0e6 (diff) | |
download | file-git-06dd3c89fc4165feea0bf131e692b9d951e99b4f.tar.gz |
fix mime for cdf encryped files.
Diffstat (limited to 'src/readcdf.c')
-rw-r--r-- | src/readcdf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/readcdf.c b/src/readcdf.c index 9e536104..4d866f66 100644 --- a/src/readcdf.c +++ b/src/readcdf.c @@ -26,7 +26,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: readcdf.c,v 1.45 2014/07/24 19:35:39 christos Exp $") +FILE_RCSID("@(#)$File: readcdf.c,v 1.46 2014/08/27 06:59:35 christos Exp $") #endif #include <assert.h> @@ -512,7 +512,8 @@ out0: if (file_printf(ms, ", %s%s", corrupt, expn) == -1) return -1; } else { - if (file_printf(ms, "application/CDFV2-corrupt") == -1) + if (file_printf(ms, "application/CDFV2-%s", + *corrupt ? "corrupt" : "encrypted") == -1) return -1; } i = 1; |