]> diplodocus.org Git - nmh/blobdiff - uip/mhbuildsbr.c
Added support for "-" to indicate stdout to output_message().
[nmh] / uip / mhbuildsbr.c
index 7d187b395ed87bdad075c3ed4a0a21a14d03dbd0..5954521f507320a0668bd82f7b921537da6cd9a5 100644 (file)
@@ -162,6 +162,7 @@ build_mime (char *infile, int directives)
      * draft into the linked list of header fields for
      * the new MIME message.
      */
+    m_getfld_track_filepos (&gstate, in);
     for (compnum = 1;;) {
        int bufsz = sizeof buf;
        switch (state = m_getfld (&gstate, name, buf, &bufsz, in)) {
@@ -1095,7 +1096,7 @@ raw:
            if ((out = fopen (ce->ce_file, "w")) == NULL)
                adios (ce->ce_file, "unable to open for writing");
 
-           for (i = 0; (child_id = vfork()) == NOTOK && i > 5; i++)
+           for (i = 0; (child_id = fork()) == NOTOK && i > 5; i++)
                sleep (5);
            switch (child_id) {
            case NOTOK: