X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/96a2a03a1473522669e8848959c3aa380cf3d4eb..ca2f8cc7e93a21f9f04e0d976ca97feac4802e91:/uip/slocal.c diff --git a/uip/slocal.c b/uip/slocal.c index 6027eabd..df02d0d1 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -26,6 +26,7 @@ #include #include #include +#include "h/done.h" #include #include "sbr/lock_file.h" #include "sbr/m_mktemp.h" @@ -931,13 +932,13 @@ logged_in (void) if (debug) continue; endutxent(); - return (utmped = DONE); + return utmped = DONE; } } endutxent(); #endif /* HAVE_GETUTXENT */ - return (utmped = NOTOK); + return utmped = NOTOK; } #define check(t,a,b) if (t < a || t > b) return -1 @@ -1091,7 +1092,7 @@ usr_pipe (int fd_arg, char *cmd, char *pgm, char **vec, int suppress) setenv("SHELL", pw->pw_shell, 1); execvp (pgm, vec); - _exit (-1); + _exit(1); default: /* parent process */