X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fcontext_save.c;h=10d4d427252be2231b521671bff2f0846540f9d0;hp=ac0dbfdf55eef6310ae7f52dc89d2640344ac51a;hb=cf1205b5cbea2f0cd6ea710ec16c637df85b647c;hpb=d254c5e2ad008f26d5fda43c3f24f0a711c7e851 diff --git a/sbr/context_save.c b/sbr/context_save.c index ac0dbfd..10d4d42 100644 --- a/sbr/context_save.c +++ b/sbr/context_save.c @@ -12,6 +12,7 @@ * because there no longer are setuid/setgid programs in nmh. */ +#include #include #include @@ -39,7 +40,7 @@ context_save(void) sigprocmask(SIG_BLOCK, &set, &oset); if (!(out = lkfopen(ctxpath, "w"))) - adios(ctxpath, "unable to write"); + adios(EX_IOERR, ctxpath, "unable to write"); for (np = m_defs; np; np = np->n_next) if (np->n_context) fprintf(out, "%s: %s\n", np->n_name, np->n_field);