Add %(unmailto) format function for List-Post headers
[mmh] / sbr / path.c
index 21796a7..66bb8f1 100644 (file)
@@ -6,8 +6,10 @@
 ** complete copyright information.
 */
 
+#include <sysexits.h>
 #include <h/mh.h>
 #include <pwd.h>
+#include <unistd.h>
 
 
 /*
@@ -75,7 +77,7 @@ try_it:
 
 
 /*
-**  Compactify a path name by removing unneccessary parts.
+**  Compactify a path name by removing unnecessary parts.
 **  Removes trailing slashes. Cares to never remove all characters.
 **  Modifies f (never enlarges it).
 **
@@ -284,7 +286,7 @@ toabsdir(char *path)
                char *cp=buf, *pp;
 
                if (!(pp = context_find("path")) || !*pp) {
-                       adios(NULL, "Non-empty profile entry `Path' required");
+                       adios(EX_CONFIG, NULL, "Non-empty profile entry `Path' required");
                }
                if (*pp != '/') {
                        /* Path is relative to $HOME */