From 3bc4fc5857e2daba601442f95771a590bce915bc Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 19 Nov 2011 13:55:46 +0100 Subject: makemime: content-type should default to application/octet-stream Signed-off-by: Denys Vlasenko --- mailutils/makemime.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mailutils/makemime.c') diff --git a/mailutils/makemime.c b/mailutils/makemime.c index a9ff03d03..f1ef602a4 100644 --- a/mailutils/makemime.c +++ b/mailutils/makemime.c @@ -146,6 +146,7 @@ int makemime_main(int argc UNUSED_PARAM, char **argv) { llist_t *opt_headers = NULL, *l; const char *opt_output; + const char *content_type = "application/octet-stream"; #define boundary opt_output enum { @@ -165,7 +166,7 @@ int makemime_main(int argc UNUSED_PARAM, char **argv) opt_complementary = "a::"; opts = getopt32(argv, "c:e:o:C:N:a:", //:m:j:", - &G.content_type, NULL, &opt_output, &G.opt_charset, NULL, &opt_headers //, NULL, NULL + &content_type, NULL, &opt_output, &G.opt_charset, NULL, &opt_headers //, NULL, NULL ); //argc -= optind; argv += optind; @@ -202,7 +203,7 @@ int makemime_main(int argc UNUSED_PARAM, char **argv) "Content-Disposition: inline; filename=\"%s\"\n" "Content-Transfer-Encoding: base64\n" , boundary - , G.content_type + , content_type , G.opt_charset , bb_get_last_path_component_strip(*argv) ); -- cgit v1.2.3