Use sysexits.h for better exit-codes
[mmh] / sbr / context_save.c
index ac0dbfd..10d4d42 100644 (file)
@@ -12,6 +12,7 @@
  * because there no longer are setuid/setgid programs in nmh.
  */
 
+#include <sysexits.h>
 #include <h/mh.h>
 #include <h/signals.h>
 
@@ -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);