X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fprompter.c;h=7f71e028be4b43affaa581d1cccddfcb6cc0c0f4;hp=c7eb95787faad7b09aad5bc1e4074972d9b2aa09;hb=6e9577f324bef90765a5edc02044eb111ec48072;hpb=cdb32d069bdcb6fa04ca7e3d87240442665611b0 diff --git a/uip/prompter.c b/uip/prompter.c index c7eb957..7f71e02 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -38,6 +38,7 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; volatile sig_atomic_t wtuser = 0; volatile sig_atomic_t sigint = 0; @@ -140,6 +141,10 @@ main(int argc, char **argv) */ for (state = FLD2;;) { switch (state = m_getfld2(state, &f, in)) { + case LENERR2: + state = FLD2; + /* FALL */ + case FLD2: /* ** Check if the value of field contains @@ -212,6 +217,9 @@ abort: } } while ((state = m_getfld2(state, &f, in)) ==BODY2); + if (state != FILEEOF2) { + adios(EX_IOERR, "m_getfld2", "io error"); + } } if (prepend || !qbody) { @@ -230,8 +238,11 @@ has_no_body: } break; + case FMTERR2: + advise(NULL, "skeleton is poorly formatted"); + continue; default: - adios(EX_DATAERR, NULL, "skeleton is poorly formatted"); + adios(EX_IOERR, "m_getfld2", "io error"); } break; }