]> andersk Git - openssh.git/blobdiff - openbsd-compat/bsd-nextstep.c
- (djm) Bug #539: Specify creation mode with O_CREAT for lastlog. Report
[openssh.git] / openbsd-compat / bsd-nextstep.c
index b6cdb3faa8525f060bd6880068308c4289983342..f3c1fb6d58daf7d9728f6ed874ec8eb2ac2e817c 100644 (file)
@@ -22,6 +22,8 @@
 
 #include "includes.h"
 
+RCSID("$Id$");
+
 #ifdef HAVE_NEXT
 #include <errno.h>
 #include <sys/wait.h>
@@ -35,7 +37,8 @@ posix_wait(int *status)
 
        #undef wait                     /* Use NeXT's wait() function */
        wait_pid = wait(&statusp);
-       status = (int *) statusp.w_status;
+       if (status)
+               *status = (int) statusp.w_status;
 
        return wait_pid;
 }
This page took 0.032576 seconds and 4 git commands to generate.