X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a57e5d9907d845d6f83d2cfdea55cd52efad793f..64f5cda4610fa3de39a9d69aeda2d8a26f147f2e:/uip/install-mh.c?ds=inline diff --git a/uip/install-mh.c b/uip/install-mh.c index 2240f870..ce8e2940 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -208,6 +208,13 @@ query: */ if ((out = fopen (defpath, "w")) == NULL) adios (defpath, "unable to write"); + /* + * The main purpose of this first line is to fool file(1). + * Without it, if the first line of the profile is Path:, + * file 5.19 reports its type as message/news. With it, + * it reports the type as text/plain. + */ + fprintf (out, "MH-Profile-Version: 1.0\n"); for (np = m_defs; np; np = np->n_next) { if (!np->n_context) fprintf (out, "%s: %s\n", np->n_name, np->n_field);