mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
correct type on last arg to execl(); nordin@cse.ogi.edu
This commit is contained in:
parent
20675415ae
commit
c96f6a27c3
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: func.c,v 1.10 2001/06/25 04:41:25 art Exp $ */
|
||||
/* $OpenBSD: func.c,v 1.11 2001/07/09 07:02:08 deraadt Exp $ */
|
||||
/* $NetBSD: func.c,v 1.11 1996/02/09 02:28:29 christos Exp $ */
|
||||
|
||||
/*-
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)func.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: func.c,v 1.10 2001/06/25 04:41:25 art Exp $";
|
||||
static char rcsid[] = "$OpenBSD: func.c,v 1.11 2001/07/09 07:02:08 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -253,7 +253,7 @@ dologin(v, t)
|
||||
islogin();
|
||||
rechist();
|
||||
(void) signal(SIGTERM, parterm);
|
||||
(void) execl(_PATH_LOGIN, "login", short2str(v[1]), NULL);
|
||||
(void) execl(_PATH_LOGIN, "login", short2str(v[1]), (char *)NULL);
|
||||
untty();
|
||||
xexit(1);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: mv.c,v 1.17 2001/01/08 16:12:57 millert Exp $ */
|
||||
/* $OpenBSD: mv.c,v 1.18 2001/07/09 07:04:26 deraadt Exp $ */
|
||||
/* $NetBSD: mv.c,v 1.9 1995/03/21 09:06:52 cgd Exp $ */
|
||||
|
||||
/*
|
||||
@ -47,7 +47,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)mv.c 8.2 (Berkeley) 4/2/94";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: mv.c,v 1.17 2001/01/08 16:12:57 millert Exp $";
|
||||
static char rcsid[] = "$OpenBSD: mv.c,v 1.18 2001/07/09 07:04:26 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -366,7 +366,7 @@ copy(from, to)
|
||||
pid_t pid;
|
||||
|
||||
if ((pid = vfork()) == 0) {
|
||||
execl(_PATH_CP, "mv", "-PRp", from, to, NULL);
|
||||
execl(_PATH_CP, "mv", "-PRp", from, to, (char *)NULL);
|
||||
warn("%s", _PATH_CP);
|
||||
_exit(1);
|
||||
}
|
||||
@ -384,7 +384,7 @@ copy(from, to)
|
||||
return (1);
|
||||
}
|
||||
if (!(pid = vfork())) {
|
||||
execl(_PATH_RM, "mv", "-rf", from, NULL);
|
||||
execl(_PATH_RM, "mv", "-rf", from, (char *)NULL);
|
||||
warn("%s", _PATH_RM);
|
||||
_exit(1);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ar_io.c,v 1.22 2001/05/26 00:32:20 millert Exp $ */
|
||||
/* $OpenBSD: ar_io.c,v 1.23 2001/07/09 07:04:26 deraadt Exp $ */
|
||||
/* $NetBSD: ar_io.c,v 1.5 1996/03/26 23:54:13 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
@ -42,7 +42,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)ar_io.c 8.2 (Berkeley) 4/18/94";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: ar_io.c,v 1.22 2001/05/26 00:32:20 millert Exp $";
|
||||
static char rcsid[] = "$OpenBSD: ar_io.c,v 1.23 2001/07/09 07:04:26 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -1350,7 +1350,7 @@ ar_start_gzip(int fd, const char *gzip_program, int wr)
|
||||
}
|
||||
close(fds[0]);
|
||||
close(fds[1]);
|
||||
if (execlp(gzip_program, gzip_program, gzip_flags, NULL) < 0)
|
||||
if (execlp(gzip_program, gzip_program, gzip_flags, (char *)NULL) < 0)
|
||||
err(1, "could not exec");
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: util.c,v 1.8 2001/01/15 19:54:56 deraadt Exp $ */
|
||||
/* $OpenBSD: util.c,v 1.9 2001/07/09 07:04:27 deraadt Exp $ */
|
||||
/* $NetBSD: util.c,v 1.2 1995/03/21 08:19:08 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)util.c 8.2 (Berkeley) 4/2/94";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: util.c,v 1.8 2001/01/15 19:54:56 deraadt Exp $";
|
||||
static char rcsid[] = "$OpenBSD: util.c,v 1.9 2001/07/09 07:04:27 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -124,7 +124,7 @@ susystem(s, userid)
|
||||
case 0:
|
||||
(void)seteuid(userid);
|
||||
(void)setuid(userid);
|
||||
execl(_PATH_BSHELL, "sh", "-c", s, NULL);
|
||||
execl(_PATH_BSHELL, "sh", "-c", s, (char *)NULL);
|
||||
_exit(127);
|
||||
}
|
||||
istat = signal(SIGINT, SIG_IGN);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: main.c,v 1.9 2001/06/23 23:49:54 pjanzen Exp $ */
|
||||
/* $OpenBSD: main.c,v 1.10 2001/07/09 07:04:27 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@ -43,7 +43,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: main.c,v 1.9 2001/06/23 23:49:54 pjanzen Exp $";
|
||||
static char rcsid[] = "$OpenBSD: main.c,v 1.10 2001/07/09 07:04:27 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -143,7 +143,7 @@ main (argc,argv)
|
||||
addstr(rules);
|
||||
if (yorn(0)) {
|
||||
endwin();
|
||||
execl(TEACH, "teachgammon", args, 0);
|
||||
execl(TEACH, "teachgammon", args, (char *)NULL);
|
||||
|
||||
err(1, "%s", noteach);
|
||||
} else {/* if not rules, then instructions */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: teach.c,v 1.9 2001/06/23 23:50:05 pjanzen Exp $ */
|
||||
/* $OpenBSD: teach.c,v 1.10 2001/07/09 07:04:28 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@ -43,7 +43,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)teach.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: teach.c,v 1.9 2001/06/23 23:50:05 pjanzen Exp $";
|
||||
static char rcsid[] = "$OpenBSD: teach.c,v 1.10 2001/07/09 07:04:28 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -139,6 +139,6 @@ leave()
|
||||
{
|
||||
clear();
|
||||
endwin();
|
||||
execl(EXEC, "backgammon", "-n", args, 0);
|
||||
execl(EXEC, "backgammon", "-n", args, (char *)NULL);
|
||||
errx(1, "help! Backgammon program is missing!!");
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: instr.c,v 1.7 1999/06/10 22:58:19 pjanzen Exp $ */
|
||||
/* $OpenBSD: instr.c,v 1.8 2001/07/09 07:04:28 deraadt Exp $ */
|
||||
/* $NetBSD: instr.c,v 1.5 1997/07/10 06:47:30 mikel Exp $ */
|
||||
|
||||
/*-
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)instr.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: instr.c,v 1.7 1999/06/10 22:58:19 pjanzen Exp $";
|
||||
static char rcsid[] = "$OpenBSD: instr.c,v 1.8 2001/07/09 07:04:28 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -85,7 +85,7 @@ instructions()
|
||||
}
|
||||
if (dup2(fd, 0) == -1)
|
||||
err(1, "dup2");
|
||||
execl(_PATH_BSHELL, "sh", "-c", pager, NULL);
|
||||
execl(_PATH_BSHELL, "sh", "-c", pager, (char *)NULL);
|
||||
err(1, "exec sh -c %s", pager);
|
||||
/* NOTREACHED */
|
||||
default:
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fish.c,v 1.8 2000/04/08 12:22:39 pjanzen Exp $ */
|
||||
/* $OpenBSD: fish.c,v 1.9 2001/07/09 07:04:29 deraadt Exp $ */
|
||||
/* $NetBSD: fish.c,v 1.3 1995/03/23 08:28:18 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
@ -47,7 +47,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)fish.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: fish.c,v 1.8 2000/04/08 12:22:39 pjanzen Exp $";
|
||||
static char rcsid[] = "$OpenBSD: fish.c,v 1.9 2001/07/09 07:04:29 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -505,7 +505,7 @@ instructions()
|
||||
}
|
||||
if (dup2(fd, 0) == -1)
|
||||
err(1, "dup2");
|
||||
(void)execl(_PATH_BSHELL, "sh", "-c", pager, NULL);
|
||||
(void)execl(_PATH_BSHELL, "sh", "-c", pager, (char *)NULL);
|
||||
err(1, "exec sh -c %s", pager);
|
||||
/* NOT REACHED */
|
||||
case -1:
|
||||
|
@ -1,9 +1,9 @@
|
||||
/* $OpenBSD: tok.c,v 1.5 2000/06/29 07:55:42 pjanzen Exp $ */
|
||||
/* $OpenBSD: tok.c,v 1.6 2001/07/09 07:04:29 deraadt Exp $ */
|
||||
/* $NetBSD: tok.c,v 1.5 1997/10/18 20:03:54 christos Exp $ */
|
||||
|
||||
/* tok.c Larn is copyrighted 1986 by Noah Morgan. */
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$OpenBSD: tok.c,v 1.5 2000/06/29 07:55:42 pjanzen Exp $";
|
||||
static char rcsid[] = "$OpenBSD: tok.c,v 1.6 2001/07/09 07:04:29 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -102,7 +102,7 @@ yylex()
|
||||
if ((ic = fork()) == 0) { /* child */
|
||||
/* revoke */
|
||||
setgid(getgid());
|
||||
execl("/bin/csh", 0);
|
||||
execl("/bin/csh", (char *)NULL);
|
||||
exit(1);
|
||||
}
|
||||
wait(0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: misc.c,v 1.7 2001/02/04 02:51:25 pjanzen Exp $ */
|
||||
/* $OpenBSD: misc.c,v 1.8 2001/07/09 07:04:29 deraadt Exp $ */
|
||||
/* $NetBSD: misc.c,v 1.2 1995/03/24 03:59:03 cgd Exp $ */
|
||||
|
||||
/*
|
||||
@ -932,7 +932,7 @@ death(how)
|
||||
if (ch == 'Y') {
|
||||
cleanup(FALSE);
|
||||
execl(_PATH_GAMEPROG, "phantasia", "-s",
|
||||
(Wizard ? "-S" : (char *) NULL), 0);
|
||||
(Wizard ? "-S" : (char *)NULL), (char *)NULL);
|
||||
exit(0);
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: machdep.c,v 1.5 1999/08/17 09:13:12 millert Exp $ */
|
||||
/* $OpenBSD: machdep.c,v 1.6 2001/07/09 07:04:30 deraadt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.5 1995/04/28 23:49:22 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
@ -506,7 +506,7 @@ md_shell(shell)
|
||||
* uid = getuid();
|
||||
* setuid(uid);
|
||||
*/
|
||||
execl(shell, shell, 0);
|
||||
execl(shell, shell, (char *)NULL);
|
||||
}
|
||||
wait(&w);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: wump.c,v 1.15 2001/05/02 23:28:31 pjanzen Exp $ */
|
||||
/* $OpenBSD: wump.c,v 1.16 2001/07/09 07:04:30 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -47,7 +47,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)wump.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: wump.c,v 1.15 2001/05/02 23:28:31 pjanzen Exp $";
|
||||
static char rcsid[] = "$OpenBSD: wump.c,v 1.16 2001/07/09 07:04:30 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -915,7 +915,7 @@ puff of greasy black smoke! (poof)\n");
|
||||
case 0: /* child */
|
||||
if (dup2(fd, 0) == -1)
|
||||
err(1, "dup2");
|
||||
(void)execl(_PATH_BSHELL, "sh", "-c", pager, NULL);
|
||||
(void)execl(_PATH_BSHELL, "sh", "-c", pager, (char *)NULL);
|
||||
err(1, "exec sh -c %s", pager);
|
||||
/* NOT REACHED */
|
||||
case -1:
|
||||
|
@ -7129,10 +7129,10 @@ do_pragma ()
|
||||
close (1);
|
||||
if (open ("/dev/tty", O_WRONLY, 0666) != 1)
|
||||
goto nope;
|
||||
execl ("/usr/games/hack", "#pragma", 0);
|
||||
execl ("/usr/games/rogue", "#pragma", 0);
|
||||
execl ("/usr/new/emacs", "-f", "hanoi", "9", "-kill", 0);
|
||||
execl ("/usr/local/emacs", "-f", "hanoi", "9", "-kill", 0);
|
||||
execl ("/usr/games/hack", "#pragma", (char *)NULL);
|
||||
execl ("/usr/games/rogue", "#pragma", (char *)NULL);
|
||||
execl ("/usr/new/emacs", "-f", "hanoi", "9", "-kill", (char *)NULL);
|
||||
execl ("/usr/local/emacs", "-f", "hanoi", "9", "-kill", (char *)NULL);
|
||||
nope:
|
||||
fatal ("You are in a maze of twisty compiler features, all different");
|
||||
}
|
||||
|
@ -326,7 +326,7 @@ UDIConnect(Config, Session)
|
||||
arg0,
|
||||
soc_con[cnt].domain_string,
|
||||
soc_con[cnt].tip_string,
|
||||
NULL);
|
||||
(char *)NULL);
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
|
@ -1369,9 +1369,9 @@ shell_escape (arg, from_tty)
|
||||
if ((pid = fork()) == 0)
|
||||
{
|
||||
if (!arg)
|
||||
execl (user_shell, p, 0);
|
||||
execl (user_shell, p, (char *)NULL);
|
||||
else
|
||||
execl (user_shell, p, "-c", arg, 0);
|
||||
execl (user_shell, p, "-c", arg, (char *)NULL);
|
||||
|
||||
fprintf_unfiltered (gdb_stderr, "Cannot execute %s: %s\n", user_shell,
|
||||
safe_strerror (errno));
|
||||
|
@ -235,7 +235,7 @@ begin_output ()
|
||||
close (pipes[0]);
|
||||
}
|
||||
|
||||
execl (PR_PROGRAM, PR_PROGRAM, "-f", "-h", name, 0);
|
||||
execl (PR_PROGRAM, PR_PROGRAM, "-f", "-h", name, (char *)NULL);
|
||||
pfatal_with_name (PR_PROGRAM);
|
||||
}
|
||||
else
|
||||
|
@ -208,7 +208,7 @@ begin_output ()
|
||||
close (pipes[0]);
|
||||
}
|
||||
|
||||
execl (PR_PROGRAM, PR_PROGRAM, "-F", "-h", name, 0);
|
||||
execl (PR_PROGRAM, PR_PROGRAM, "-F", "-h", name, (char *)NULL);
|
||||
pfatal_with_name (PR_PROGRAM);
|
||||
}
|
||||
else
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: input-file.c,v 1.2 1998/02/15 18:48:51 niklas Exp $ */
|
||||
/* $OpenBSD: input-file.c,v 1.3 2001/07/09 07:04:35 deraadt Exp $ */
|
||||
|
||||
/* input_file.c - Deal with Input Files -
|
||||
Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc.
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$OpenBSD: input-file.c,v 1.2 1998/02/15 18:48:51 niklas Exp $";
|
||||
static char rcsid[] = "$OpenBSD: input-file.c,v 1.3 2001/07/09 07:04:35 deraadt Exp $";
|
||||
#endif
|
||||
|
||||
#ifdef USG
|
||||
@ -175,8 +175,8 @@ int debugging; /* TRUE if we are debugging assembler. */
|
||||
(void)dup2 (fd, fileno(stdout));
|
||||
/* JF for testing #define PREPROCESSOR "/lib/app" */
|
||||
#define PREPROCESSOR "./app"
|
||||
execl (PREPROCESSOR, PREPROCESSOR, 0);
|
||||
execl ("app","app",0);
|
||||
execl (PREPROCESSOR, PREPROCESSOR, (char *)NULL);
|
||||
execl ("app","app",(char *)NULL);
|
||||
(void)write(2,"Exec of app failed. Get help.\n",31);
|
||||
(void)unlink(temporary_file_name);
|
||||
_exit (11);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ldd.c,v 1.7 2001/04/17 21:44:38 espie Exp $ */
|
||||
/* $OpenBSD: ldd.c,v 1.8 2001/07/09 07:04:36 deraadt Exp $ */
|
||||
/* $NetBSD: ldd.c,v 1.12 1995/10/09 00:14:41 pk Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1993 Paul Kranenburg
|
||||
@ -163,7 +163,7 @@ char *argv[];
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
rval |= execl(*argv, *argv, NULL) != 0;
|
||||
rval |= execl(*argv, *argv, (char *)NULL) != 0;
|
||||
perror(*argv);
|
||||
_exit(1);
|
||||
}
|
||||
|
@ -371,7 +371,7 @@ main(argc, argv)
|
||||
#ifdef DEBUG
|
||||
printf("%s\n", newcmdbuf);
|
||||
#endif /* DEBUG */
|
||||
(void) execle("/bin/sh", "/bin/sh", "-c", newcmdbuf, NULL, newenv);
|
||||
(void) execle("/bin/sh", "/bin/sh", "-c", newcmdbuf, (char *)NULL, newenv);
|
||||
save_errno = errno;
|
||||
#ifndef DEBUG
|
||||
syslog(LOG_CRIT, "Cannot exec /bin/sh: %m");
|
||||
|
@ -109,7 +109,7 @@ change_passwd(struct passwd *who)
|
||||
warn("fork /bin/passwd");
|
||||
sleepexit(1);
|
||||
case 0:
|
||||
execlp("/bin/passwd", "passwd", who->pw_name, (char *) 0);
|
||||
execlp("/bin/passwd", "passwd", who->pw_name, (char *)NULL);
|
||||
_exit(1);
|
||||
default:
|
||||
waitpid(pid, &status, 0);
|
||||
@ -845,11 +845,11 @@ main(int argc, char **argv)
|
||||
krb_afslog(0, 0);
|
||||
}
|
||||
|
||||
execlp(pwd->pw_shell, tbuf, 0);
|
||||
execlp(pwd->pw_shell, tbuf, (char *)NULL);
|
||||
if (getuid() == 0) {
|
||||
warnx("Can't exec %s, trying %s\n",
|
||||
pwd->pw_shell, _PATH_BSHELL);
|
||||
execlp(_PATH_BSHELL, tbuf, 0);
|
||||
execlp(_PATH_BSHELL, tbuf, (char *)NULL);
|
||||
err(1, "%s", _PATH_BSHELL);
|
||||
}
|
||||
err(1, "%s", pwd->pw_shell);
|
||||
|
@ -86,7 +86,7 @@ susystem(char *s, int userid)
|
||||
if(do_osfc2_magic(userid))
|
||||
exit(1);
|
||||
setuid(userid);
|
||||
execl(_PATH_BSHELL, "sh", "-c", s, NULL);
|
||||
execl(_PATH_BSHELL, "sh", "-c", s, (char *)NULL);
|
||||
_exit(127);
|
||||
}
|
||||
istat = signal(SIGINT, SIG_IGN);
|
||||
|
@ -490,7 +490,7 @@ doit(int f, struct sockaddr_in *fromp)
|
||||
hostname);
|
||||
|
||||
execl(new_login, "login", "-p",
|
||||
"-h", hostname, "-f", "--", lusername, 0);
|
||||
"-h", hostname, "-f", "--", lusername, (char *)NULL);
|
||||
} else if (use_kerberos) {
|
||||
fprintf(stderr, "User `%s' is not authorized to login as `%s'!\n",
|
||||
krb_unparse_name_long(kdata->pname,
|
||||
@ -500,7 +500,7 @@ doit(int f, struct sockaddr_in *fromp)
|
||||
exit(1);
|
||||
} else
|
||||
execl(new_login, "login", "-p",
|
||||
"-h", hostname, "--", lusername, 0);
|
||||
"-h", hostname, "--", lusername, (char *)NULL);
|
||||
fatal(STDERR_FILENO, new_login, 1);
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
|
@ -613,7 +613,7 @@ doit(struct sockaddr_in *fromp)
|
||||
krb_afslog_uid_home (cell, NULL, uid, homedir);
|
||||
krb_afslog_uid_home(NULL, NULL, uid, homedir);
|
||||
}
|
||||
execle(shell_path, cp, "-c", cmdbuf, 0, envinit);
|
||||
execle(shell_path, cp, "-c", cmdbuf, (char *)NULL, envinit);
|
||||
err(1, "%s", shell_path);
|
||||
}
|
||||
|
||||
|
@ -118,8 +118,8 @@ zrefresh(void)
|
||||
return -1;
|
||||
case 0:
|
||||
/* Child */
|
||||
execlp("zrefresh", "zrefresh", 0);
|
||||
execl(BINDIR "/zrefresh", "zrefresh", 0);
|
||||
execlp("zrefresh", "zrefresh", (char *)NULL);
|
||||
execl(BINDIR "/zrefresh", "zrefresh", (char *)NULL);
|
||||
exit(1);
|
||||
default:
|
||||
/* Parent */
|
||||
|
@ -1307,9 +1307,9 @@ shell(int argc, char **argv)
|
||||
else
|
||||
shellname++;
|
||||
if (argc > 1)
|
||||
execl(shellp, shellname, "-c", &saveline[1], 0);
|
||||
execl(shellp, shellname, "-c", &saveline[1], (char *)NULL);
|
||||
else
|
||||
execl(shellp, shellname, 0);
|
||||
execl(shellp, shellname, (char *)NULL);
|
||||
perror("Execl");
|
||||
_exit(1);
|
||||
}
|
||||
|
@ -1877,7 +1877,7 @@ cleantmpdir(jid, tpath, user)
|
||||
tpath);
|
||||
break;
|
||||
case 0:
|
||||
execl(CLEANTMPCMD, CLEANTMPCMD, user, tpath, 0);
|
||||
execl(CLEANTMPCMD, CLEANTMPCMD, user, tpath, (char *)NULL);
|
||||
syslog(LOG_ERR, "TMPDIR cleanup(%s): execl(%s) failed: %m\n",
|
||||
tpath, CLEANTMPCMD);
|
||||
exit(1);
|
||||
|
@ -286,8 +286,8 @@ zrefresh(void)
|
||||
return -1;
|
||||
case 0:
|
||||
/* Child */
|
||||
execlp("zrefresh", "zrefresh", 0);
|
||||
execl(BINDIR "/zrefresh", "zrefresh", 0);
|
||||
execlp("zrefresh", "zrefresh", (char *)NULL);
|
||||
execl(BINDIR "/zrefresh", "zrefresh", (char *)NULL);
|
||||
return -1;
|
||||
default:
|
||||
/* Parent */
|
||||
|
@ -141,7 +141,7 @@ main(argc, argv)
|
||||
"FILE:/opt/dcelocal/var/security/creds/dcecred_%8.8x",
|
||||
pag);
|
||||
esetenv("KRB5CCNAME",ccname,1);
|
||||
execl("/bin/csh","csh",0);
|
||||
execl("/bin/csh","csh",(char *)NULL);
|
||||
}
|
||||
else {
|
||||
fprintf(stderr," Not a good pag value\n");
|
||||
|
@ -321,6 +321,6 @@ main(int argc, char **argv)
|
||||
ret = doit (port, service);
|
||||
closelog();
|
||||
if (ret == 0 && regpag_str != NULL)
|
||||
ret = execl(regpag_str, "regpag", "-t", krb5_tkfile, "-r", NULL);
|
||||
ret = execl(regpag_str, "regpag", "-t", krb5_tkfile, "-r", (char *)NULL);
|
||||
return ret;
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ start_logout_process(void)
|
||||
ret = waitpid(pid, &status, 0);
|
||||
if(ret > 0) {
|
||||
if(WIFEXITED(status) || WIFSIGNALED(status)) {
|
||||
execle(prog, argv0, NULL, env);
|
||||
execle(prog, argv0, (char *)NULL, env);
|
||||
err(1, "exec %s", prog);
|
||||
}
|
||||
} else if(ret < 0)
|
||||
@ -119,11 +119,11 @@ exec_shell(const char *shell, int fallback)
|
||||
else
|
||||
p = shell;
|
||||
asprintf(&sh, "-%s", p);
|
||||
execle(shell, sh, NULL, env);
|
||||
execle(shell, sh, (char *)NULL, env);
|
||||
if(fallback){
|
||||
warnx("Can't exec %s, trying %s",
|
||||
shell, _PATH_BSHELL);
|
||||
execle(_PATH_BSHELL, "-sh", NULL, env);
|
||||
execle(_PATH_BSHELL, "-sh", (char *)NULL, env);
|
||||
err(1, "%s", _PATH_BSHELL);
|
||||
}
|
||||
err(1, "%s", shell);
|
||||
|
@ -113,7 +113,7 @@ susystem(s, userid)
|
||||
|
||||
case 0:
|
||||
(void)setuid(userid);
|
||||
execl(_PATH_BSHELL, "sh", "-c", s, NULL);
|
||||
execl(_PATH_BSHELL, "sh", "-c", s, (char *)NULL);
|
||||
_exit(127);
|
||||
}
|
||||
istat = signal(SIGINT, SIG_IGN);
|
||||
|
@ -836,7 +836,7 @@ doit (int do_kerberos, int check_rhosts)
|
||||
#endif /* KRB5 */
|
||||
}
|
||||
#endif /* KRB4 */
|
||||
execle (pwd->pw_shell, pwd->pw_shell, "-c", cmd, NULL, env);
|
||||
execle (pwd->pw_shell, pwd->pw_shell, "-c", cmd, (char *)NULL, env);
|
||||
err(1, "exec %s", pwd->pw_shell);
|
||||
}
|
||||
|
||||
|
@ -1305,9 +1305,9 @@ shell(int argc, char **argv)
|
||||
else
|
||||
shellname++;
|
||||
if (argc > 1)
|
||||
execl(shellp, shellname, "-c", &saveline[1], 0);
|
||||
execl(shellp, shellname, "-c", &saveline[1], (char *)NULL);
|
||||
else
|
||||
execl(shellp, shellname, 0);
|
||||
execl(shellp, shellname, (char *)NULL);
|
||||
perror("Execl");
|
||||
_exit(1);
|
||||
}
|
||||
|
@ -1880,7 +1880,7 @@ cleantmpdir(jid, tpath, user)
|
||||
tpath);
|
||||
break;
|
||||
case 0:
|
||||
execl(CLEANTMPCMD, CLEANTMPCMD, user, tpath, 0);
|
||||
execl(CLEANTMPCMD, CLEANTMPCMD, user, tpath, (char *)NULL);
|
||||
syslog(LOG_ERR, "TMPDIR cleanup(%s): execl(%s) failed: %m\n",
|
||||
tpath, CLEANTMPCMD);
|
||||
exit(1);
|
||||
|
@ -286,8 +286,8 @@ zrefresh(void)
|
||||
return -1;
|
||||
case 0:
|
||||
/* Child */
|
||||
execlp("zrefresh", "zrefresh", 0);
|
||||
execl(BINDIR "/zrefresh", "zrefresh", 0);
|
||||
execlp("zrefresh", "zrefresh", (char *)NULL);
|
||||
execl(BINDIR "/zrefresh", "zrefresh", (char *)NULL);
|
||||
return -1;
|
||||
default:
|
||||
/* Parent */
|
||||
|
@ -35,7 +35,7 @@
|
||||
*/
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char rcsid[] = "$OpenBSD: popen.c,v 1.9 1997/09/11 18:51:04 deraadt Exp $";
|
||||
static char rcsid[] = "$OpenBSD: popen.c,v 1.10 2001/07/09 07:04:39 deraadt Exp $";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -118,7 +118,7 @@ popen(program, type)
|
||||
(void)close(pdes[0]);
|
||||
}
|
||||
}
|
||||
execl(_PATH_BSHELL, "sh", "-c", program, NULL);
|
||||
execl(_PATH_BSHELL, "sh", "-c", program, (char *)NULL);
|
||||
_exit(127);
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: test_fcntl.c,v 1.3 2000/01/06 06:53:52 d Exp $ */
|
||||
/* $OpenBSD: test_fcntl.c,v 1.4 2001/07/09 07:04:40 deraadt Exp $ */
|
||||
/*
|
||||
* Test fcntl() flag inheritance across a fork()
|
||||
*/
|
||||
@ -17,7 +17,7 @@ main()
|
||||
CHECKe(child = fork());
|
||||
switch(child) {
|
||||
case 0: /* child */
|
||||
CHECKe(execlp("test_create", "test_create", NULL));
|
||||
CHECKe(execlp("test_create", "test_create", (char *)NULL));
|
||||
/* NOTREACHED */
|
||||
default: /* parent */
|
||||
CHECKe(wait(NULL));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: test_sock_2.c,v 1.5 2000/01/06 06:58:34 d Exp $ */
|
||||
/* $OpenBSD: test_sock_2.c,v 1.6 2001/07/09 07:04:40 deraadt Exp $ */
|
||||
/* ==== test_sock_1.c =========================================================
|
||||
* Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu
|
||||
*
|
||||
@ -96,7 +96,7 @@ sock_accept(arg)
|
||||
CHECKe(pid = fork());
|
||||
switch(pid) {
|
||||
case 0:
|
||||
execl("test_sock_2a", "test_sock_2a", "fork okay", NULL);
|
||||
execl("test_sock_2a", "test_sock_2a", "fork okay", (char *)NULL);
|
||||
DIE(errno, "execl");
|
||||
default:
|
||||
break;
|
||||
|
@ -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
|
||||
@ -34,7 +34,7 @@
|
||||
*/
|
||||
|
||||
#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 */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -295,10 +295,10 @@ pw_mkdb(username)
|
||||
if (pw_lck) {
|
||||
if (username)
|
||||
execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-d",
|
||||
pw_dir, "-u", username, pw_lck, NULL);
|
||||
pw_dir, "-u", username, pw_lck, (char *)NULL);
|
||||
else
|
||||
execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-d",
|
||||
pw_dir, pw_lck, NULL);
|
||||
pw_dir, pw_lck, (char *)NULL);
|
||||
}
|
||||
_exit(1);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: atrun.c,v 1.13 2001/05/29 21:37:16 millert Exp $ */
|
||||
/* $OpenBSD: atrun.c,v 1.14 2001/07/09 07:04:41 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* atrun.c - run jobs queued by at; run with root privileges.
|
||||
@ -71,7 +71,7 @@
|
||||
/* File scope variables */
|
||||
|
||||
static char *namep;
|
||||
static char rcsid[] = "$OpenBSD: atrun.c,v 1.13 2001/05/29 21:37:16 millert Exp $";
|
||||
static char rcsid[] = "$OpenBSD: atrun.c,v 1.14 2001/07/09 07:04:41 deraadt Exp $";
|
||||
static int debug = 0;
|
||||
|
||||
/* Local functions */
|
||||
@ -320,7 +320,7 @@ run_file(filename, uid, gid)
|
||||
if (queue > 'b')
|
||||
(void) setpriority(PRIO_PROCESS, 0, queue - 'b');
|
||||
|
||||
if (execle(_PATH_BSHELL, "sh", NULL, nenvp) != 0)
|
||||
if (execle(_PATH_BSHELL, "sh", (char *)NULL, nenvp) != 0)
|
||||
perr("Exec failed for /bin/sh");
|
||||
|
||||
PRIV_END
|
||||
@ -357,7 +357,7 @@ run_file(filename, uid, gid)
|
||||
chdir("/");
|
||||
|
||||
execl(_PATH_SENDMAIL, "sendmail", "-F", "Atrun Service",
|
||||
"-odi", "-oem", "-t", (char *) NULL);
|
||||
"-odi", "-oem", "-t", (char *)NULL);
|
||||
perr("Exec failed for mail command");
|
||||
|
||||
PRIV_END
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ldd.c,v 1.6 2001/06/13 19:43:21 deraadt Exp $ */
|
||||
/* $OpenBSD: ldd.c,v 1.7 2001/07/09 07:04:42 deraadt Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2001 Artur Grabowski <art@openbsd.org>
|
||||
* All rights reserved.
|
||||
@ -143,7 +143,7 @@ doit(char *name)
|
||||
case -1:
|
||||
err(1, "fork");
|
||||
case 0:
|
||||
execl(name, name, NULL);
|
||||
execl(name, name, (char *)NULL);
|
||||
perror(name);
|
||||
_exit(1);
|
||||
default:
|
||||
@ -166,4 +166,4 @@ doit(char *name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: mail.local.c,v 1.20 2000/04/21 21:50:00 millert Exp $ */
|
||||
/* $OpenBSD: mail.local.c,v 1.21 2001/07/09 07:04:42 deraadt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996-1998 Theo de Raadt <deraadt@theos.com>
|
||||
@ -45,7 +45,7 @@ char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "from: @(#)mail.local.c 5.6 (Berkeley) 6/19/91";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: mail.local.c,v 1.20 2000/04/21 21:50:00 millert Exp $";
|
||||
static char rcsid[] = "$OpenBSD: mail.local.c,v 1.21 2001/07/09 07:04:42 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -108,7 +108,7 @@ main(argc, argv)
|
||||
|
||||
/* Support -H flag for backwards compat */
|
||||
if (holdme) {
|
||||
execl(_PATH_LOCKSPOOL, "lockspool", NULL);
|
||||
execl(_PATH_LOCKSPOOL, "lockspool", (char *)NULL);
|
||||
err(FATAL, "execl: lockspool: %s", strerror(errno));
|
||||
} else {
|
||||
if (!*argv)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: rexecd.c,v 1.17 2001/05/29 21:37:16 millert Exp $ */
|
||||
/* $OpenBSD: rexecd.c,v 1.18 2001/07/09 07:04:44 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983 The Regents of the University of California.
|
||||
@ -41,7 +41,7 @@ char copyright[] =
|
||||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)rexecd.c 5.12 (Berkeley) 2/25/91";*/
|
||||
static char rcsid[] = "$OpenBSD: rexecd.c,v 1.17 2001/05/29 21:37:16 millert Exp $";
|
||||
static char rcsid[] = "$OpenBSD: rexecd.c,v 1.18 2001/07/09 07:04:44 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -283,7 +283,7 @@ doit(f, fromp)
|
||||
else
|
||||
cp = pwd->pw_shell;
|
||||
closelog();
|
||||
execl(pwd->pw_shell, cp, "-c", cmdbuf, 0);
|
||||
execl(pwd->pw_shell, cp, "-c", cmdbuf, (char *)NULL);
|
||||
perror(pwd->pw_shell);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: rshd.c,v 1.38 2001/06/11 15:18:51 mickey Exp $ */
|
||||
/* $OpenBSD: rshd.c,v 1.39 2001/07/09 07:04:44 deraadt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1988, 1989, 1992, 1993, 1994
|
||||
@ -41,7 +41,7 @@ static char copyright[] =
|
||||
|
||||
#ifndef lint
|
||||
/* from: static char sccsid[] = "@(#)rshd.c 8.2 (Berkeley) 4/6/94"; */
|
||||
static char *rcsid = "$OpenBSD: rshd.c,v 1.38 2001/06/11 15:18:51 mickey Exp $";
|
||||
static char *rcsid = "$OpenBSD: rshd.c,v 1.39 2001/07/09 07:04:44 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -751,7 +751,7 @@ fail:
|
||||
syslog(LOG_INFO|LOG_AUTH, "%s@%s as %s: cmd='%.80s'",
|
||||
remuser, hostname, locuser, cmdbuf);
|
||||
}
|
||||
execl(pwd->pw_shell, cp, "-c", cmdbuf, 0);
|
||||
execl(pwd->pw_shell, cp, "-c", cmdbuf, (char *)NULL);
|
||||
perror(pwd->pw_shell);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -1886,7 +1886,7 @@ cleantmpdir(jid, tpath, user)
|
||||
tpath);
|
||||
break;
|
||||
case 0:
|
||||
execl(CLEANTMPCMD, CLEANTMPCMD, user, tpath, 0);
|
||||
execl(CLEANTMPCMD, CLEANTMPCMD, user, tpath, (char *)NULL);
|
||||
syslog(LOG_ERR, "TMPDIR cleanup(%s): execl(%s) failed: %m\n",
|
||||
tpath, CLEANTMPCMD);
|
||||
exit(1);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: uucpd.c,v 1.18 2001/01/28 19:34:35 niklas Exp $ */
|
||||
/* $OpenBSD: uucpd.c,v 1.19 2001/07/09 07:04:45 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1985 The Regents of the University of California.
|
||||
@ -44,7 +44,7 @@ char copyright[] =
|
||||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)uucpd.c 5.10 (Berkeley) 2/26/91";*/
|
||||
static char rcsid[] = "$OpenBSD: uucpd.c,v 1.18 2001/01/28 19:34:35 niklas Exp $";
|
||||
static char rcsid[] = "$OpenBSD: uucpd.c,v 1.19 2001/07/09 07:04:45 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -227,7 +227,7 @@ struct sockaddr_in *sinp;
|
||||
return;
|
||||
}
|
||||
chdir(pw->pw_dir);
|
||||
execl(_PATH_UUCICO, "uucico", (char *)0);
|
||||
execl(_PATH_UUCICO, "uucico", (char *)NULL);
|
||||
perror("uucico server: execl");
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: init.c,v 1.21 2001/01/19 17:57:37 deraadt Exp $ */
|
||||
/* $OpenBSD: init.c,v 1.22 2001/07/09 07:04:45 deraadt Exp $ */
|
||||
/* $NetBSD: init.c,v 1.22 1996/05/15 23:29:33 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
@ -47,7 +47,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)init.c 8.2 (Berkeley) 4/28/95";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: init.c,v 1.21 2001/01/19 17:57:37 deraadt Exp $";
|
||||
static char rcsid[] = "$OpenBSD: init.c,v 1.22 2001/07/09 07:04:45 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -1416,7 +1416,7 @@ nice_death()
|
||||
sigprocmask(SIG_SETMASK, &sa.sa_mask, NULL);
|
||||
|
||||
execl(_PATH_BSHELL, "sh", _PATH_RUNCOM, "shutdown",
|
||||
NULL);
|
||||
(char *)NULL);
|
||||
stall("can't exec %s for %s %s: %m", _PATH_BSHELL,
|
||||
_PATH_RUNCOM, "shutdown");
|
||||
_exit(1);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: modload.c,v 1.25 2001/07/07 18:26:15 deraadt Exp $ */
|
||||
/* $OpenBSD: modload.c,v 1.26 2001/07/09 07:04:46 deraadt Exp $ */
|
||||
/* $NetBSD: modload.c,v 1.13 1995/05/28 05:21:58 jtc Exp $ */
|
||||
|
||||
/*
|
||||
@ -103,7 +103,7 @@ linkcmd(kernel, entry, outfile, address, object)
|
||||
|
||||
if (pid == 0) {
|
||||
execl(_PATH_LD, "ld", LDSYMTABLE, kernel, "-e", entrybuf, "-o",
|
||||
outfile, LDTEXTSTART, addrbuf, object, NULL);
|
||||
outfile, LDTEXTSTART, addrbuf, object, (char *)NULL);
|
||||
exit(128 + errno);
|
||||
}
|
||||
|
||||
@ -494,7 +494,7 @@ main(argc, argv)
|
||||
|
||||
cleanup();
|
||||
|
||||
execl(post, post, id, type, offset, 0);
|
||||
execl(post, post, id, type, offset, (char *)NULL);
|
||||
err(16, "can't exec `%s'", post);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: reboot.c,v 1.19 2001/06/04 14:59:49 mickey Exp $ */
|
||||
/* $OpenBSD: reboot.c,v 1.20 2001/07/09 07:04:46 deraadt Exp $ */
|
||||
/* $NetBSD: reboot.c,v 1.8 1995/10/05 05:36:22 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
@ -44,7 +44,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)reboot.c 8.1 (Berkeley) 6/5/93";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: reboot.c,v 1.19 2001/06/04 14:59:49 mickey Exp $";
|
||||
static char rcsid[] = "$OpenBSD: reboot.c,v 1.20 2001/07/09 07:04:46 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -196,7 +196,7 @@ main(argc, argv)
|
||||
t.c_oflag |= (ONLCR | OPOST);
|
||||
tcsetattr(0, TCSANOW, &t);
|
||||
|
||||
execl(_PATH_BSHELL, "sh", _PATH_RC, "shutdown", NULL);
|
||||
execl(_PATH_BSHELL, "sh", _PATH_RC, "shutdown", (char *)NULL);
|
||||
_exit(1);
|
||||
default:
|
||||
waitpid(pid, NULL, 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: shutdown.c,v 1.21 2001/07/07 18:26:22 deraadt Exp $ */
|
||||
/* $OpenBSD: shutdown.c,v 1.22 2001/07/09 07:04:47 deraadt Exp $ */
|
||||
/* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */
|
||||
|
||||
/*
|
||||
@ -44,7 +44,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)shutdown.c 8.2 (Berkeley) 2/16/94";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: shutdown.c,v 1.21 2001/07/07 18:26:22 deraadt Exp $";
|
||||
static char rcsid[] = "$OpenBSD: shutdown.c,v 1.22 2001/07/09 07:04:47 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -424,7 +424,7 @@ die_you_gravy_sucking_pig_dog()
|
||||
t.c_oflag |= (ONLCR | OPOST);
|
||||
tcsetattr(0, TCSANOW, &t);
|
||||
|
||||
execl(_PATH_BSHELL, "sh", _PATH_RC, "shutdown", NULL);
|
||||
execl(_PATH_BSHELL, "sh", _PATH_RC, "shutdown", (char *)NULL);
|
||||
_exit(1);
|
||||
default:
|
||||
waitpid(pid, NULL, 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: apply.c,v 1.8 2000/12/24 11:22:54 aaron Exp $ */
|
||||
/* $OpenBSD: apply.c,v 1.9 2001/07/09 07:04:47 deraadt Exp $ */
|
||||
/* $NetBSD: apply.c,v 1.3 1995/03/25 03:38:23 glass Exp $ */
|
||||
|
||||
/*-
|
||||
@ -41,7 +41,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)apply.c 8.4 (Berkeley) 4/4/94";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: apply.c,v 1.8 2000/12/24 11:22:54 aaron Exp $";
|
||||
static char rcsid[] = "$OpenBSD: apply.c,v 1.9 2001/07/09 07:04:47 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -218,7 +218,7 @@ system(command)
|
||||
err(1, "fork");
|
||||
case 0: /* child */
|
||||
(void)sigsetmask(omask);
|
||||
execl(shell, name, "-c", command, NULL);
|
||||
execl(shell, name, "-c", command, (char *)NULL);
|
||||
err(1, "%s", shell);
|
||||
}
|
||||
intsave = signal(SIGINT, SIG_IGN);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: io.c,v 1.11 2001/06/05 21:27:16 pjanzen Exp $ */
|
||||
/* $OpenBSD: io.c,v 1.12 2001/07/09 07:04:48 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1994
|
||||
@ -43,7 +43,7 @@ static const char copyright[] =
|
||||
#if 0
|
||||
static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: io.c,v 1.11 2001/06/05 21:27:16 pjanzen Exp $";
|
||||
static char rcsid[] = "$OpenBSD: io.c,v 1.12 2001/07/09 07:04:48 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -362,7 +362,7 @@ opencal()
|
||||
(void)close(pdes[0]);
|
||||
(void)setuid(geteuid());
|
||||
(void)setgid(getegid());
|
||||
execl(_PATH_CPP, "cpp", "-P", "-I.", _PATH_INCLUDE, NULL);
|
||||
execl(_PATH_CPP, "cpp", "-P", "-I.", _PATH_INCLUDE, (char *)NULL);
|
||||
warn(_PATH_CPP);
|
||||
_exit(1);
|
||||
}
|
||||
@ -413,7 +413,7 @@ closecal(fp)
|
||||
(void)setuid(geteuid());
|
||||
(void)setgid(getegid());
|
||||
execl(_PATH_SENDMAIL, "sendmail", "-i", "-t", "-F",
|
||||
"\"Reminder Service\"", NULL);
|
||||
"\"Reminder Service\"", (char *)NULL);
|
||||
warn(_PATH_SENDMAIL);
|
||||
_exit(1);
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
* learn, from V7 UNIX: one of the earliest Computer Based Training (CBT)
|
||||
* programs still in existence.
|
||||
*
|
||||
* $OpenBSD: learn.c,v 1.4 2000/06/30 16:00:23 millert Exp $
|
||||
* $OpenBSD: learn.c,v 1.5 2001/07/09 07:04:48 deraadt Exp $
|
||||
*/
|
||||
|
||||
/****************************************************************
|
||||
@ -469,8 +469,8 @@ makpipe()
|
||||
close(0);
|
||||
dup(f[0]);
|
||||
close(f[0]);
|
||||
execl ("/bin/sh", "sh", "-i", 0);
|
||||
execl ("/usr/bin/sh", "sh", "-i", 0);
|
||||
execl ("/bin/sh", "sh", "-i", (char *)NULL);
|
||||
execl ("/usr/bin/sh", "sh", "-i", (char *)NULL);
|
||||
write(2,"Exec error\n",11);
|
||||
}
|
||||
close(f[0]);
|
||||
@ -496,7 +496,7 @@ maktee()
|
||||
close(out);
|
||||
dup(in);
|
||||
close(in);
|
||||
execl (tee, "lrntee", 0);
|
||||
execl (tee, "lrntee", (char *)NULL);
|
||||
fprintf(stderr, "Tee exec failed\n");
|
||||
exit(1);
|
||||
}
|
||||
@ -699,7 +699,7 @@ int system(const char *s)
|
||||
if ((pid = fork()) == 0) {
|
||||
signal(SIGINT, SIG_DFL);
|
||||
signal(SIGQUIT, SIG_DFL);
|
||||
execl("/bin/sh", "sh", "-c", s, 0);
|
||||
execl("/bin/sh", "sh", "-c", s, (char *)NULL);
|
||||
_exit(127);
|
||||
}
|
||||
while ((w = wait(&status)) != pid && w != -1)
|
||||
@ -1029,8 +1029,8 @@ int n;
|
||||
chdir("..");
|
||||
if ( (pid=fork()) ==0) {
|
||||
signal(SIGHUP, SIG_IGN);
|
||||
execl("/bin/rm", "rm", "-r", playdir, 0);
|
||||
execl("/usr/bin/rm", "rm", "-r", playdir, 0);
|
||||
execl("/bin/rm", "rm", "-r", playdir, (char *)NULL);
|
||||
execl("/usr/bin/rm", "rm", "-r", playdir, (char *)NULL);
|
||||
fprintf(stderr, "Can't find 'rm' command.\n");
|
||||
exit(0);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: login.c,v 1.41 2001/07/06 18:12:06 pvalchev Exp $ */
|
||||
/* $OpenBSD: login.c,v 1.42 2001/07/09 07:04:49 deraadt Exp $ */
|
||||
/* $NetBSD: login.c,v 1.13 1996/05/15 23:50:16 jtc Exp $ */
|
||||
|
||||
/*-
|
||||
@ -77,7 +77,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
|
||||
#endif
|
||||
static char rcsid[] = "$OpenBSD: login.c,v 1.41 2001/07/06 18:12:06 pvalchev Exp $";
|
||||
static char rcsid[] = "$OpenBSD: login.c,v 1.42 2001/07/09 07:04:49 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -769,7 +769,7 @@ failed:
|
||||
kgettokens(pwd->pw_dir);
|
||||
#endif
|
||||
|
||||
execlp(shell, tbuf, 0);
|
||||
execlp(shell, tbuf, (char *)NULL);
|
||||
err(1, "%s", shell);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: fileio.c,v 1.18 2001/07/06 13:32:45 art Exp $ */
|
||||
/* $OpenBSD: fileio.c,v 1.19 2001/07/09 07:04:49 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* POSIX fileio.c
|
||||
@ -401,7 +401,7 @@ copy(frname, toname)
|
||||
if ((pid = vfork())) {
|
||||
if (pid == -1)
|
||||
return -1;
|
||||
execl("/bin/cp", "cp", frname, toname, NULL);
|
||||
execl("/bin/cp", "cp", frname, toname, (char *)NULL);
|
||||
_exit(1); /* shouldn't happen */
|
||||
}
|
||||
waitpid(pid, &status, 0);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: newsyslog.c,v 1.36 2001/03/01 20:34:10 aaron Exp $ */
|
||||
/* $OpenBSD: newsyslog.c,v 1.37 2001/07/09 07:04:50 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
@ -88,7 +88,7 @@ provided "as is" without express or implied warranty.
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.36 2001/03/01 20:34:10 aaron Exp $";
|
||||
static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.37 2001/07/09 07:04:50 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef CONF
|
||||
@ -724,7 +724,7 @@ compress_log(log)
|
||||
if (pid < 0) {
|
||||
err(1, "fork");
|
||||
} else if (!pid) {
|
||||
(void)execl(COMPRESS, base, "-f", tmp, 0);
|
||||
(void)execl(COMPRESS, base, "-f", tmp, (char *)NULL);
|
||||
warn(COMPRESS);
|
||||
_exit(1);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: server.c,v 1.12 1999/08/17 09:13:16 millert Exp $ */
|
||||
/* $OpenBSD: server.c,v 1.13 2001/07/09 07:04:50 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -35,7 +35,7 @@
|
||||
|
||||
#ifndef lint
|
||||
/* from: static char sccsid[] = "@(#)server.c 8.1 (Berkeley) 6/9/93"; */
|
||||
static char *rcsid = "$OpenBSD: server.c,v 1.12 1999/08/17 09:13:16 millert Exp $";
|
||||
static char *rcsid = "$OpenBSD: server.c,v 1.13 2001/07/09 07:04:50 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/wait.h>
|
||||
@ -1391,7 +1391,7 @@ dospecial(cmd)
|
||||
seteuid(userid);
|
||||
setuid(userid);
|
||||
#endif /* DIRECT_RCMD */
|
||||
execl(_PATH_BSHELL, "sh", "-c", cmd, 0);
|
||||
execl(_PATH_BSHELL, "sh", "-c", cmd, (char *)NULL);
|
||||
_exit(127);
|
||||
}
|
||||
(void) close(fd[1]);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: common.c,v 1.10 2000/11/10 15:33:12 provos Exp $ */
|
||||
/* $OpenBSD: common.c,v 1.11 2001/07/09 07:04:51 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983 Regents of the University of California.
|
||||
@ -39,7 +39,7 @@ static char RCSid[] =
|
||||
"$From: common.c,v 6.82 1998/03/23 23:27:33 michaelc Exp $";
|
||||
#else
|
||||
static char RCSid[] =
|
||||
"$OpenBSD: common.c,v 1.10 2000/11/10 15:33:12 provos Exp $";
|
||||
"$OpenBSD: common.c,v 1.11 2001/07/09 07:04:51 deraadt Exp $";
|
||||
#endif
|
||||
|
||||
static char sccsid[] = "@(#)common.c";
|
||||
@ -836,7 +836,7 @@ void runcommand(cmd)
|
||||
(void) dup(fd[PIPE_WRITE]);
|
||||
(void) close(fd[PIPE_READ]);
|
||||
(void) close(fd[PIPE_WRITE]);
|
||||
(void) execl(_PATH_BSHELL, "sh", "-c", cmd, 0);
|
||||
(void) execl(_PATH_BSHELL, "sh", "-c", cmd, (char *)NULL);
|
||||
_exit(127);
|
||||
}
|
||||
(void) close(fd[PIPE_WRITE]);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: rdist.c,v 1.7 1999/02/04 23:18:57 millert Exp $ */
|
||||
/* $OpenBSD: rdist.c,v 1.8 2001/07/09 07:04:51 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983 Regents of the University of California.
|
||||
@ -39,7 +39,7 @@ static char RCSid[] =
|
||||
"$From: rdist.c,v 6.65 1995/12/12 00:20:39 mcooper Exp $";
|
||||
#else
|
||||
static char RCSid[] =
|
||||
"$OpenBSD: rdist.c,v 1.7 1999/02/04 23:18:57 millert Exp $";
|
||||
"$OpenBSD: rdist.c,v 1.8 2001/07/09 07:04:51 deraadt Exp $";
|
||||
#endif
|
||||
|
||||
static char sccsid[] = "@(#)main.c 5.1 (Berkeley) 6/6/85";
|
||||
@ -143,7 +143,7 @@ main(argc, argv, envp)
|
||||
"Old rdist (-Server) requested; running %s",
|
||||
_PATH_OLDRDIST);
|
||||
(void) execl(_PATH_OLDRDIST, xbasename(_PATH_OLDRDIST),
|
||||
"-Server", NULL);
|
||||
"-Server", (char *)NULL);
|
||||
fatalerr("Exec old rdist failed: %s: %s.",
|
||||
_PATH_OLDRDIST, SYSERR);
|
||||
#else /* !_PATH_OLDRDIST */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: script.c,v 1.14 2001/01/11 19:26:01 deraadt Exp $ */
|
||||
/* $OpenBSD: script.c,v 1.15 2001/07/09 07:04:52 deraadt Exp $ */
|
||||
/* $NetBSD: script.c,v 1.3 1994/12/21 08:55:43 jtc Exp $ */
|
||||
|
||||
/*
|
||||
@ -44,7 +44,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static char rcsid[] = "$OpenBSD: script.c,v 1.14 2001/01/11 19:26:01 deraadt Exp $";
|
||||
static char rcsid[] = "$OpenBSD: script.c,v 1.15 2001/07/09 07:04:52 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -246,7 +246,7 @@ doshell()
|
||||
(void)close(master);
|
||||
(void)fclose(fscript);
|
||||
login_tty(slave);
|
||||
execl(shell, shell, "-i", NULL);
|
||||
execl(shell, shell, "-i", (char *)NULL);
|
||||
perror(shell);
|
||||
fail();
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: skeyaudit.c,v 1.10 2000/09/20 21:53:49 pjanzen Exp $ */
|
||||
/* $OpenBSD: skeyaudit.c,v 1.11 2001/07/09 07:04:52 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 2000 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
@ -202,7 +202,7 @@ runsendmail(pw, pidp)
|
||||
_exit(127);
|
||||
}
|
||||
|
||||
execl(_PATH_SENDMAIL, "sendmail", "-t", NULL);
|
||||
execl(_PATH_SENDMAIL, "sendmail", "-t", (char *)NULL);
|
||||
warn("cannot run \"%s -t\"", _PATH_SENDMAIL);
|
||||
_exit(127);
|
||||
}
|
||||
|
@ -33,7 +33,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
RCSID("$OpenBSD: session.c,v 1.98 2001/07/02 13:59:15 markus Exp $");
|
||||
RCSID("$OpenBSD: session.c,v 1.99 2001/07/09 07:04:53 deraadt Exp $");
|
||||
|
||||
#include "ssh.h"
|
||||
#include "ssh1.h"
|
||||
@ -1124,7 +1124,7 @@ do_child(Session *s, const char *command)
|
||||
/* Launch login(1). */
|
||||
|
||||
execl("/usr/bin/login", "login", "-h", hostname,
|
||||
"-p", "-f", "--", pw->pw_name, NULL);
|
||||
"-p", "-f", "--", pw->pw_name, (char *)NULL);
|
||||
|
||||
/* Login couldn't be executed, die. */
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
/* XXX: recursive operations */
|
||||
|
||||
#include "includes.h"
|
||||
RCSID("$OpenBSD: sftp-int.c,v 1.37 2001/06/23 15:12:20 itojun Exp $");
|
||||
RCSID("$OpenBSD: sftp-int.c,v 1.38 2001/07/09 07:04:53 deraadt Exp $");
|
||||
|
||||
#include <glob.h>
|
||||
|
||||
@ -165,10 +165,10 @@ local_do_shell(const char *args)
|
||||
/* XXX: child has pipe fds to ssh subproc open - issue? */
|
||||
if (args) {
|
||||
debug3("Executing %s -c \"%s\"", shell, args);
|
||||
execl(shell, shell, "-c", args, NULL);
|
||||
execl(shell, shell, "-c", args, (char *)NULL);
|
||||
} else {
|
||||
debug3("Executing %s", shell);
|
||||
execl(shell, shell, NULL);
|
||||
execl(shell, shell, (char *)NULL);
|
||||
}
|
||||
fprintf(stderr, "Couldn't execute \"%s\": %s\n", shell,
|
||||
strerror(errno));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: commands.c,v 1.35 2001/04/30 10:00:04 markus Exp $ */
|
||||
/* $OpenBSD: commands.c,v 1.36 2001/07/09 07:04:54 deraadt Exp $ */
|
||||
/* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */
|
||||
|
||||
/*
|
||||
@ -1382,9 +1382,9 @@ shell(argc, argv)
|
||||
else
|
||||
shellname++;
|
||||
if (argc > 1)
|
||||
execl(shellp, shellname, "-c", &saveline[1], 0);
|
||||
execl(shellp, shellname, "-c", &saveline[1], (char *)NULL);
|
||||
else
|
||||
execl(shellp, shellname, 0);
|
||||
execl(shellp, shellname, (char *)NULL);
|
||||
perror("Execl");
|
||||
_exit(1);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: cmds.c,v 1.8 2000/04/20 06:19:33 deraadt Exp $ */
|
||||
/* $OpenBSD: cmds.c,v 1.9 2001/07/09 07:04:55 deraadt Exp $ */
|
||||
/* $NetBSD: cmds.c,v 1.7 1997/02/11 09:24:03 mrg Exp $ */
|
||||
|
||||
/*
|
||||
@ -38,7 +38,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)cmds.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static char rcsid[] = "$OpenBSD: cmds.c,v 1.8 2000/04/20 06:19:33 deraadt Exp $";
|
||||
static char rcsid[] = "$OpenBSD: cmds.c,v 1.9 2001/07/09 07:04:55 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "tip.h"
|
||||
@ -594,7 +594,7 @@ shell()
|
||||
else
|
||||
cp++;
|
||||
shell_uid();
|
||||
execl(value(SHELL), cp, 0);
|
||||
execl(value(SHELL), cp, (char *)NULL);
|
||||
printf("\r\ncan't execl!\r\n");
|
||||
exit(1);
|
||||
}
|
||||
@ -690,7 +690,7 @@ execute(s)
|
||||
else
|
||||
cp++;
|
||||
shell_uid();
|
||||
execl(value(SHELL), cp, "-c", s, 0);
|
||||
execl(value(SHELL), cp, "-c", s, (char *)NULL);
|
||||
}
|
||||
|
||||
int
|
||||
@ -862,7 +862,7 @@ expand(name)
|
||||
close(pivec[1]);
|
||||
close(2);
|
||||
shell_uid();
|
||||
execl(Shell, Shell, "-c", cmdbuf, 0);
|
||||
execl(Shell, Shell, "-c", cmdbuf, (char *)NULL);
|
||||
_exit(1);
|
||||
}
|
||||
if (pid == -1) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: system.c,v 1.8 2000/02/01 03:23:44 deraadt Exp $ */
|
||||
/* $OpenBSD: system.c,v 1.9 2001/07/09 07:04:55 deraadt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1988 The Regents of the University of California.
|
||||
@ -35,7 +35,7 @@
|
||||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)system.c 4.5 (Berkeley) 4/26/91";*/
|
||||
static char rcsid[] = "$OpenBSD: system.c,v 1.8 2000/02/01 03:23:44 deraadt Exp $";
|
||||
static char rcsid[] = "$OpenBSD: system.c,v 1.9 2001/07/09 07:04:55 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -738,7 +738,7 @@ char *argv[];
|
||||
extern char *getenv();
|
||||
|
||||
cmdname = getenv("SHELL");
|
||||
execlp(cmdname, cmdname, 0);
|
||||
execlp(cmdname, cmdname, (char *)NULL);
|
||||
perror("Exec'ing new shell...\n");
|
||||
_exit(1);
|
||||
} else {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: tput.c,v 1.10 1999/09/12 10:29:01 millert Exp $ */
|
||||
/* $OpenBSD: tput.c,v 1.11 2001/07/09 07:04:56 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
@ -69,7 +69,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)tput.c 8.3 (Berkeley) 4/28/95";
|
||||
#endif
|
||||
static char rcsid[] = "$OpenBSD: tput.c,v 1.10 1999/09/12 10:29:01 millert Exp $";
|
||||
static char rcsid[] = "$OpenBSD: tput.c,v 1.11 2001/07/09 07:04:56 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -301,7 +301,7 @@ init()
|
||||
break;
|
||||
case 0:
|
||||
/* child */
|
||||
execl(init_prog, init_prog, NULL);
|
||||
execl(init_prog, init_prog, (char *)NULL);
|
||||
_exit(127);
|
||||
break;
|
||||
default:
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: vacation.c,v 1.13 2000/08/05 21:53:30 pjanzen Exp $ */
|
||||
/* $OpenBSD: vacation.c,v 1.14 2001/07/09 07:04:56 deraadt Exp $ */
|
||||
/* $NetBSD: vacation.c,v 1.7 1995/04/29 05:58:27 cgd Exp $ */
|
||||
|
||||
/*
|
||||
@ -44,7 +44,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)vacation.c 8.2 (Berkeley) 1/26/94";
|
||||
#endif
|
||||
static char rcsid[] = "$OpenBSD: vacation.c,v 1.13 2000/08/05 21:53:30 pjanzen Exp $";
|
||||
static char rcsid[] = "$OpenBSD: vacation.c,v 1.14 2001/07/09 07:04:56 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -470,7 +470,7 @@ sendmessage(myname)
|
||||
close(pvect[1]);
|
||||
close(fileno(mfp));
|
||||
execl(_PATH_SENDMAIL, "sendmail", "-f", myname, "--",
|
||||
from, NULL);
|
||||
from, (char *)NULL);
|
||||
syslog(LOG_ERR, "can't exec %s: %m", _PATH_SENDMAIL);
|
||||
_exit(1);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ex_argv.c,v 1.7 2001/01/29 01:58:41 niklas Exp $ */
|
||||
/* $OpenBSD: ex_argv.c,v 1.8 2001/07/09 07:04:57 deraadt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994
|
||||
@ -691,7 +691,7 @@ err: if (ifp != NULL)
|
||||
* XXX
|
||||
* Assume that all shells have -c.
|
||||
*/
|
||||
execl(sh_path, sh, "-c", bp, NULL);
|
||||
execl(sh_path, sh, "-c", bp, (char *)NULL);
|
||||
msgq_str(sp, M_SYSERR, sh_path, "118|Error: execl: %s");
|
||||
_exit(127);
|
||||
default: /* Parent. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ex_cscope.c,v 1.5 2001/01/29 01:58:42 niklas Exp $ */
|
||||
/* $OpenBSD: ex_cscope.c,v 1.6 2001/07/09 07:04:57 deraadt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994, 1996
|
||||
@ -406,7 +406,7 @@ err: if (to_cs[0] != -1)
|
||||
#define CSCOPE_CMD_FMT "cd '%s' && exec cscope -dl -f %s"
|
||||
(void)snprintf(cmd, sizeof(cmd),
|
||||
CSCOPE_CMD_FMT, csc->dname, dbname);
|
||||
(void)execl(_PATH_BSHELL, "sh", "-c", cmd, NULL);
|
||||
(void)execl(_PATH_BSHELL, "sh", "-c", cmd, (char *)NULL);
|
||||
msgq_str(sp, M_SYSERR, cmd, "execl: %s");
|
||||
_exit (127);
|
||||
/* NOTREACHED */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ex_filter.c,v 1.3 2001/01/29 01:58:42 niklas Exp $ */
|
||||
/* $OpenBSD: ex_filter.c,v 1.4 2001/07/09 07:04:57 deraadt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993, 1994
|
||||
@ -143,7 +143,7 @@ err: if (input[0] != -1)
|
||||
else
|
||||
++name;
|
||||
|
||||
execl(O_STR(sp, O_SHELL), name, "-c", cmd, NULL);
|
||||
execl(O_STR(sp, O_SHELL), name, "-c", cmd, (char *)NULL);
|
||||
msgq_str(sp, M_SYSERR, O_STR(sp, O_SHELL), "execl: %s");
|
||||
_exit (127);
|
||||
/* NOTREACHED */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ex_script.c,v 1.5 2001/01/29 01:58:44 niklas Exp $ */
|
||||
/* $OpenBSD: ex_script.c,v 1.6 2001/07/09 07:04:57 deraadt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993, 1994
|
||||
@ -185,7 +185,7 @@ err: if (sc->sh_master != -1)
|
||||
sh = sh_path;
|
||||
else
|
||||
++sh;
|
||||
execl(sh_path, sh, "-i", NULL);
|
||||
execl(sh_path, sh, "-i", (char *)NULL);
|
||||
msgq_str(sp, M_SYSERR, sh_path, "execl: %s");
|
||||
_exit(127);
|
||||
default: /* Parent. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ex_shell.c,v 1.6 2001/01/29 01:58:44 niklas Exp $ */
|
||||
/* $OpenBSD: ex_shell.c,v 1.7 2001/07/09 07:04:57 deraadt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993, 1994
|
||||
@ -128,7 +128,7 @@ ex_exec_proc(sp, cmdp, cmd, msg, need_newline)
|
||||
name = O_STR(sp, O_SHELL);
|
||||
else
|
||||
++name;
|
||||
execl(O_STR(sp, O_SHELL), name, "-c", cmd, NULL);
|
||||
execl(O_STR(sp, O_SHELL), name, "-c", cmd, (char *)NULL);
|
||||
msgq_str(sp, M_SYSERR, O_STR(sp, O_SHELL), "execl: %s");
|
||||
_exit(127);
|
||||
/* NOTREACHED */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: wwterminfo.c,v 1.8 1999/11/14 17:34:24 millert Exp $ */
|
||||
/* $OpenBSD: wwterminfo.c,v 1.9 2001/07/09 07:04:58 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1993
|
||||
@ -40,7 +40,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)wwterminfo.c 8.1 (Berkeley) 6/6/93";
|
||||
#else
|
||||
static char rcsid[] = "$OpenBSD: wwterminfo.c,v 1.8 1999/11/14 17:34:24 millert Exp $";
|
||||
static char rcsid[] = "$OpenBSD: wwterminfo.c,v 1.9 2001/07/09 07:04:58 deraadt Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -102,7 +102,7 @@ wwterminfoend()
|
||||
/* can't really do (or say) anything about errors */
|
||||
return -1;
|
||||
case 0:
|
||||
execl(_PATH_RM, _PATH_RM, "-rf", wwterminfopath, 0);
|
||||
execl(_PATH_RM, _PATH_RM, "-rf", wwterminfopath, (char *)NULL);
|
||||
_exit(0);
|
||||
default:
|
||||
wait(NULL);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: xinstall.c,v 1.26 2001/06/23 23:09:31 millert Exp $ */
|
||||
/* $OpenBSD: xinstall.c,v 1.27 2001/07/09 07:04:58 deraadt Exp $ */
|
||||
/* $NetBSD: xinstall.c,v 1.9 1995/12/20 10:25:17 jonathan Exp $ */
|
||||
|
||||
/*
|
||||
@ -44,7 +44,7 @@ static char copyright[] =
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
|
||||
#endif
|
||||
static char rcsid[] = "$OpenBSD: xinstall.c,v 1.26 2001/06/23 23:09:31 millert Exp $";
|
||||
static char rcsid[] = "$OpenBSD: xinstall.c,v 1.27 2001/07/09 07:04:58 deraadt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -561,7 +561,7 @@ strip(to_name)
|
||||
(void)unlink(to_name);
|
||||
errx(EX_TEMPFAIL, "forks: %s", strerror(serrno));
|
||||
case 0:
|
||||
execl(path_strip, "strip", to_name, NULL);
|
||||
execl(path_strip, "strip", to_name, (char *)NULL);
|
||||
warn("%s", path_strip);
|
||||
_exit(EX_OSERR);
|
||||
default:
|
||||
|
@ -56,7 +56,7 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
RCSID("$Id: klog.c,v 1.1 2000/09/11 14:40:33 art Exp $");
|
||||
RCSID("$Id: klog.c,v 1.2 2001/07/09 07:04:59 deraadt Exp $");
|
||||
|
||||
#include "appl_locl.h"
|
||||
#include "klog.h"
|
||||
@ -787,7 +787,7 @@ main(int argc, char **argv)
|
||||
shell = pwd->pw_shell;
|
||||
}
|
||||
|
||||
execl(shell, shell, NULL);
|
||||
execl(shell, shell, (char *)NULL);
|
||||
|
||||
/* the AFS token is useless if the shell exec fails, because it
|
||||
is in a PAG that will soon go away. */
|
||||
|
@ -43,7 +43,7 @@
|
||||
* multiple commands on the command line to run several tests at the
|
||||
* same time.
|
||||
*
|
||||
* $Id: testlwp.c,v 1.3 2000/09/11 14:41:10 art Exp $
|
||||
* $Id: testlwp.c,v 1.4 2001/07/09 07:04:59 deraadt Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -198,7 +198,7 @@ startSelectPC (char *progname)
|
||||
if (dup2(pipa[1], 0) == -1)
|
||||
err(1, "dup2");
|
||||
close(pipa[1]);
|
||||
execl(progname, "testlwp", "selectproducer", NULL);
|
||||
execl(progname, "testlwp", "selectproducer", (char *)NULL);
|
||||
err(1, "execl");
|
||||
default:
|
||||
break;
|
||||
@ -299,7 +299,7 @@ int main(int argc, char **argv)
|
||||
yaEndlessLoop();
|
||||
} else if (strcasecmp("version", argv[1]) == 0) {
|
||||
printf("Version: "
|
||||
"$Id: testlwp.c,v 1.3 2000/09/11 14:41:10 art Exp $\n");
|
||||
"$Id: testlwp.c,v 1.4 2001/07/09 07:04:59 deraadt Exp $\n");
|
||||
exit (0);
|
||||
} else {
|
||||
printf("unknown command %s\n", argv[1]);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: apmd.c,v 1.15 2001/07/07 01:10:42 mickey Exp $ */
|
||||
/* $OpenBSD: apmd.c,v 1.16 2001/07/09 07:05:00 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 John T. Kohl
|
||||
@ -522,7 +522,7 @@ do_etc_file(const char *file)
|
||||
return;
|
||||
case 0:
|
||||
/* We are the child. */
|
||||
execl(file, prog, NULL);
|
||||
execl(file, prog, (char *)NULL);
|
||||
_exit(1);
|
||||
/* NOTREACHED */
|
||||
default:
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: crontab.c,v 1.19 2001/02/18 19:48:32 millert Exp $ */
|
||||
/* $OpenBSD: crontab.c,v 1.20 2001/07/09 07:05:00 deraadt Exp $ */
|
||||
/* Copyright 1988,1990,1993,1994 by Paul Vixie
|
||||
* All rights reserved
|
||||
*/
|
||||
@ -21,7 +21,7 @@
|
||||
*/
|
||||
|
||||
#if !defined(lint) && !defined(LINT)
|
||||
static char rcsid[] = "$OpenBSD: crontab.c,v 1.19 2001/02/18 19:48:32 millert Exp $";
|
||||
static char rcsid[] = "$OpenBSD: crontab.c,v 1.20 2001/07/09 07:05:00 deraadt Exp $";
|
||||
#endif
|
||||
|
||||
/* crontab - install and manage per-user crontab files
|
||||
@ -419,7 +419,7 @@ edit_cmd(void) {
|
||||
ProgramName);
|
||||
exit(ERROR_EXIT);
|
||||
}
|
||||
execlp(_PATH_BSHELL, _PATH_BSHELL, "-c", q, NULL);
|
||||
execlp(_PATH_BSHELL, _PATH_BSHELL, "-c", q, (char *)NULL);
|
||||
perror(editor);
|
||||
exit(ERROR_EXIT);
|
||||
/*NOTREACHED*/
|
||||
|
@ -187,7 +187,7 @@ static int error_log_child(void *cmd, child_info *pinfo)
|
||||
child_pid = spawnl(P_NOWAIT, SHELL_PATH, SHELL_PATH, "/c", (char *)cmd, NULL);
|
||||
return(child_pid);
|
||||
#else
|
||||
execl(SHELL_PATH, SHELL_PATH, "-c", (char *)cmd, NULL);
|
||||
execl(SHELL_PATH, SHELL_PATH, "-c", (char *)cmd, (char *)NULL);
|
||||
#endif
|
||||
exit(1);
|
||||
/* NOT REACHED */
|
||||
@ -623,7 +623,7 @@ static int piped_log_spawn(piped_log *pl)
|
||||
ap_cleanup_for_exec();
|
||||
signal(SIGCHLD, SIG_DFL); /* for HPUX */
|
||||
signal(SIGHUP, SIG_IGN);
|
||||
execl(SHELL_PATH, SHELL_PATH, "-c", pl->program, NULL);
|
||||
execl(SHELL_PATH, SHELL_PATH, "-c", pl->program, (char *)NULL);
|
||||
fprintf(stderr,
|
||||
"piped_log_spawn: unable to exec %s -c '%s': %s\n",
|
||||
SHELL_PATH, pl->program, strerror (errno));
|
||||
@ -772,7 +772,7 @@ static int piped_log_child(void *cmd, child_info *pinfo)
|
||||
child_pid = spawnl(P_NOWAIT, SHELL_PATH, SHELL_PATH, "/c", (char *)cmd, NULL);
|
||||
return(child_pid);
|
||||
#else
|
||||
execl (SHELL_PATH, SHELL_PATH, "-c", (char *)cmd, NULL);
|
||||
execl (SHELL_PATH, SHELL_PATH, "-c", (char *)cmd, (char *)NULL);
|
||||
#endif
|
||||
perror("exec");
|
||||
fprintf(stderr, "Exec of shell for logging failed!!!\n");
|
||||
|
@ -1252,12 +1252,12 @@ API_EXPORT(int) ap_call_exec(request_rec *r, child_info *pinfo, char *argv0,
|
||||
|
||||
if (shellcmd) {
|
||||
execle(SUEXEC_BIN, SUEXEC_BIN, execuser, grpname, argv0,
|
||||
NULL, env);
|
||||
(char *)NULL, env);
|
||||
}
|
||||
|
||||
else if ((!r->args) || (!r->args[0]) || strchr(r->args, '=')) {
|
||||
execle(SUEXEC_BIN, SUEXEC_BIN, execuser, grpname, argv0,
|
||||
NULL, env);
|
||||
(char *)NULL, env);
|
||||
}
|
||||
|
||||
else {
|
||||
@ -1269,11 +1269,11 @@ API_EXPORT(int) ap_call_exec(request_rec *r, child_info *pinfo, char *argv0,
|
||||
}
|
||||
else {
|
||||
if (shellcmd) {
|
||||
execle(SHELL_PATH, SHELL_PATH, "-c", argv0, NULL, env);
|
||||
execle(SHELL_PATH, SHELL_PATH, "-c", argv0, (char *)NULL, env);
|
||||
}
|
||||
|
||||
else if ((!r->args) || (!r->args[0]) || strchr(r->args, '=')) {
|
||||
execle(r->filename, argv0, NULL, env);
|
||||
execle(r->filename, argv0, (char *)NULL, env);
|
||||
}
|
||||
|
||||
else {
|
||||
|
@ -258,7 +258,7 @@ int ssl_util_ppopen_child(void *cmd, child_info *pinfo)
|
||||
spawnl(P_NOWAIT, SHELL_PATH, SHELL_PATH, "/c", (char *)cmd, NULL);
|
||||
#else
|
||||
/* Standard Unix */
|
||||
execl(SHELL_PATH, SHELL_PATH, "-c", (char *)cmd, NULL);
|
||||
execl(SHELL_PATH, SHELL_PATH, "-c", (char *)cmd, (char *)NULL);
|
||||
#endif
|
||||
return (child_pid);
|
||||
}
|
||||
|
@ -3377,10 +3377,10 @@ static int rewritemap_program_child(void *cmd, child_info *pinfo)
|
||||
// Need something here!!! Spawn????
|
||||
#elif defined(OS2)
|
||||
/* IBM OS/2 */
|
||||
execl(SHELL_PATH, SHELL_PATH, "/c", (char *)cmd, NULL);
|
||||
execl(SHELL_PATH, SHELL_PATH, "/c", (char *)cmd, (char *)NULL);
|
||||
#else
|
||||
/* Standard Unix */
|
||||
execl(SHELL_PATH, SHELL_PATH, "-c", (char *)cmd, NULL);
|
||||
execl(SHELL_PATH, SHELL_PATH, "-c", (char *)cmd, (char *)NULL);
|
||||
#endif
|
||||
return(child_pid);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: printjob.c,v 1.22 2001/06/22 15:27:20 lebel Exp $ */
|
||||
/* $OpenBSD: printjob.c,v 1.23 2001/07/09 07:05:02 deraadt Exp $ */
|
||||
/* $NetBSD: printjob.c,v 1.9.4.3 1996/07/12 22:31:39 jtc Exp $ */
|
||||
|
||||
/*
|
||||
@ -569,7 +569,7 @@ print(format, file)
|
||||
for (n = 3, nofile = sysconf(_SC_OPEN_MAX); n < nofile; n++)
|
||||
(void) close(n);
|
||||
execl(_PATH_PR, "pr", width, length,
|
||||
"-h", *title ? title : " ", 0);
|
||||
"-h", *title ? title : " ", (char *)NULL);
|
||||
syslog(LOG_ERR, "cannot execl %s", _PATH_PR);
|
||||
exit(2);
|
||||
}
|
||||
@ -1052,7 +1052,7 @@ sendmail(user, bombed)
|
||||
cp++;
|
||||
else
|
||||
cp = _PATH_SENDMAIL;
|
||||
execl(_PATH_SENDMAIL, cp, "-t", 0);
|
||||
execl(_PATH_SENDMAIL, cp, "-t", (char *)NULL);
|
||||
exit(0);
|
||||
} else if (s > 0) { /* parent */
|
||||
dup2(p[1], 1);
|
||||
@ -1288,7 +1288,7 @@ openpr()
|
||||
cp = OF;
|
||||
else
|
||||
cp++;
|
||||
execl(OF, cp, width, length, 0);
|
||||
execl(OF, cp, width, length, (char *)NULL);
|
||||
syslog(LOG_ERR, "%s: %s: %m", printer, OF);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* $OpenBSD: file.c,v 1.14 2001/04/08 16:45:47 espie Exp $ */
|
||||
/* $OpenBSD: file.c,v 1.15 2001/07/09 07:05:03 deraadt Exp $ */
|
||||
|
||||
#ifndef lint
|
||||
static const char *rcsid = "$OpenBSD: file.c,v 1.14 2001/04/08 16:45:47 espie Exp $";
|
||||
static const char *rcsid = "$OpenBSD: file.c,v 1.15 2001/07/09 07:05:03 deraadt Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -87,7 +87,7 @@ ftpGetURL(char *url, int *retcode)
|
||||
close(p[1]);
|
||||
|
||||
fprintf(stderr, ">>> ftp -o - %s\n",url);
|
||||
execl("/usr/bin/ftp","ftp","-V","-o","-",url,NULL);
|
||||
execl("/usr/bin/ftp","ftp","-V","-o","-",url,(char *)NULL);
|
||||
exit(1);
|
||||
} else {
|
||||
/* parent */
|
||||
@ -342,7 +342,7 @@ fileGetURL(char *base, char *spec)
|
||||
tpid = fork();
|
||||
if (!tpid) {
|
||||
dup2(fileno(ftp), 0);
|
||||
i = execl("/bin/tar", "tar", Verbose ? "-xpzvf" : "-xpzf", "-", 0);
|
||||
i = execl("/bin/tar", "tar", Verbose ? "-xpzvf" : "-xpzf", "-", (char *)NULL);
|
||||
exit(i);
|
||||
}
|
||||
else {
|
||||
|
@ -25,7 +25,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $OpenBSD: command.c,v 1.63 2001/07/09 00:08:54 brian Exp $
|
||||
* $OpenBSD: command.c,v 1.64 2001/07/09 07:05:03 deraadt Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -558,7 +558,7 @@ ShellCommand(struct cmdargs const *arg, int bg)
|
||||
if (arg->prompt)
|
||||
printf("ppp: Pausing until %s finishes\n", shell);
|
||||
prompt_TtyOldMode(arg->prompt);
|
||||
execl(shell, shell, NULL);
|
||||
execl(shell, shell, (char *)NULL);
|
||||
}
|
||||
|
||||
log_Printf(LogWARN, "exec() of %s failed: %s\n",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: common.c,v 1.4 2001/04/24 05:04:51 jason Exp $ */
|
||||
/* $OpenBSD: common.c,v 1.5 2001/07/09 07:05:04 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Network Security Technologies, Inc. http://www.netsec.net
|
||||
@ -116,7 +116,7 @@ runppp(bpffd, sysname)
|
||||
if (closeit)
|
||||
close(fds);
|
||||
|
||||
execlp(PPP_PROG, "ppp", "-direct", sysname, NULL);
|
||||
execlp(PPP_PROG, "ppp", "-direct", sysname, (char *)NULL);
|
||||
perror("execlp");
|
||||
syslog(LOG_INFO, "%s exec failed: %m", PPP_PROG);
|
||||
_exit(1);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ypserv_proc.c,v 1.15 1998/01/08 22:36:48 maja Exp $ */
|
||||
/* $OpenBSD: ypserv_proc.c,v 1.16 2001/07/09 07:05:06 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#ifndef LINT
|
||||
static char rcsid[] = "$OpenBSD: ypserv_proc.c,v 1.15 1998/01/08 22:36:48 maja Exp $";
|
||||
static char rcsid[] = "$OpenBSD: ypserv_proc.c,v 1.16 2001/07/09 07:05:06 deraadt Exp $";
|
||||
#endif
|
||||
|
||||
#include <rpc/rpc.h>
|
||||
@ -311,7 +311,7 @@ ypproc_xfr_2_svc(argp, rqstp)
|
||||
}
|
||||
if (pid == 0) {
|
||||
execl(ypxfr_proc, "ypxfr", "-d", argp->map_parms.domain,
|
||||
"-C",tid, prog, ipadd, port, argp->map_parms.map, NULL);
|
||||
"-C",tid, prog, ipadd, port, argp->map_parms.map, (char *)NULL);
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
@ -932,7 +932,7 @@ bail:
|
||||
}
|
||||
if (pid == 0) {
|
||||
execl(yppush_proc, "yppush", "-d", argp->yppush_req_domain,
|
||||
argp->yppush_req_map, NULL);
|
||||
argp->yppush_req_map, (char *)NULL);
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
@ -980,7 +980,7 @@ bail:
|
||||
}
|
||||
if (pid == 0) {
|
||||
execl(ypxfr_proc, "ypxfr", "-d", argp->yppull_req_domain,
|
||||
argp->yppull_req_map, NULL);
|
||||
argp->yppull_req_map, (char *)NULL);
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
@ -1030,7 +1030,7 @@ bail:
|
||||
}
|
||||
if (pid == 0) {
|
||||
execl(ypxfr_proc, "ypxfr", "-d", argp->ypget_req_domain, "-h",
|
||||
argp->ypget_req_owner, argp->yppush_req_map, NULL);
|
||||
argp->ypget_req_owner, argp->yppush_req_map, (char *)NULL);
|
||||
_exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user