+2005-04-05 Ken Raeburn <raeburn@mit.edu>
+
+ * krlogind.c (doit): Change 0 to (char*)NULL in execl* calls.
+ Patch provided by Michael Calmer.
+ * krshd.c (doit): Likewise.
+ * login.c (main): Likewise.
+
2004-10-01 Ken Raeburn <raeburn@mit.edu>
* kcmd.c (kcmd_connect): Set *addrfamilyp with the address family
fatalperror(f, "failed make_sane_hostname");
if (passwd_req)
execl(login_program, "login", "-p", "-h", rhost_sane,
- lusername, 0);
+ lusername, (char *)NULL);
else
execl(login_program, "login", "-p", "-h", rhost_sane,
- "-f", lusername, 0);
+ "-f", lusername, (char *)NULL);
#else /* USE_LOGIN_F */
- execl(login_program, "login", "-r", rhost_sane, 0);
+ execl(login_program, "login", "-r", rhost_sane, (char *)NULL);
#endif /* USE_LOGIN_F */
syslog(LOG_ERR, "failed exec of %s: %s",
login_program, error_message(errno));
cp = pwd->pw_shell;
if (do_encrypt && !strncmp(cmdbuf, "-x ", 3)) {
- execl(pwd->pw_shell, cp, "-c", (char *)cmdbuf + 3, 0);
+ execl(pwd->pw_shell, cp, "-c", (char *)cmdbuf + 3, (char *)NULL);
}
else {
- execl(pwd->pw_shell, cp, "-c", cmdbuf, 0);
+ execl(pwd->pw_shell, cp, "-c", cmdbuf, (char *)NULL);
}
perror(pwd->pw_shell);
perror(cp);
(void) strncpy(tbuf+1, p?(p+1):pwd->pw_shell, sizeof(tbuf) - 1);
tbuf[sizeof(tbuf) - 1] = '\0';
- execlp(pwd->pw_shell, tbuf, 0);
+ execlp(pwd->pw_shell, tbuf, (char *)NULL);
fprintf(stderr, "login: no shell: ");
perror(pwd->pw_shell);
exit(0);