X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fforw.c;h=93870b1af0c5c91e9cf1bc9738adb7536de5ccf4;hb=b439ec143c4d2e2daf4b0a9c332123f24500cd9a;hp=319cc3980be6d24e9b43558884b3902aaeec46c6;hpb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;p=mmh diff --git a/uip/forw.c b/uip/forw.c index 319cc39..93870b1 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -393,16 +393,8 @@ try_it_again: if (!form) form = digestcomps; in = build_form (form, digest, volume, issue); - } else { - if (form) { - if ((in = open (etcpath (form), O_RDONLY)) == NOTOK) - adios (form, "unable to open form file"); - } else { - if ((in = open (etcpath (forwcomps), O_RDONLY)) == NOTOK) - adios (forwcomps, "unable to open default components file"); - form = forwcomps; - } - } + } else + in = open_form(&form, forwcomps); if ((out = creat (drft, m_gmprot ())) == NOTOK) adios (drft, "unable to create");