Browse Source

correct type on last arg to execl(); nordin@cse.ogi.edu

OPENBSD_3_0
deraadt 23 years ago
parent
commit
431f8263a1
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/lib/libutil/passwd.c

+ 4
- 4
src/lib/libutil/passwd.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: passwd.c,v 1.24 2001/01/02 18:22:32 millert Exp $ */
/* $OpenBSD: passwd.c,v 1.25 2001/07/09 07:04:40 deraadt Exp $ */
/* /*
* Copyright (c) 1987, 1993, 1994, 1995 * Copyright (c) 1987, 1993, 1994, 1995
@ -34,7 +34,7 @@
*/ */
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] = "$OpenBSD: passwd.c,v 1.24 2001/01/02 18:22:32 millert Exp $";
static char rcsid[] = "$OpenBSD: passwd.c,v 1.25 2001/07/09 07:04:40 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/types.h> #include <sys/types.h>
@ -295,10 +295,10 @@ pw_mkdb(username)
if (pw_lck) { if (pw_lck) {
if (username) if (username)
execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-d", execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-d",
pw_dir, "-u", username, pw_lck, NULL);
pw_dir, "-u", username, pw_lck, (char *)NULL);
else else
execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-d", execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-d",
pw_dir, pw_lck, NULL);
pw_dir, pw_lck, (char *)NULL);
} }
_exit(1); _exit(1);
} }


Loading…
Cancel
Save