use NULL as last argument to execl, not 0

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14747 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-04-06 11:23:54 +00:00
parent 2697d2a0f3
commit c41860a8ee
3 changed files with 4 additions and 4 deletions

View File

@@ -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", NULL);
}
else {
fprintf(stderr," Not a good pag value\n");

View File

@@ -1884,7 +1884,7 @@ cleantmpdir(jid, tpath, user)
tpath);
break;
case 0:
execl(CLEANTMPCMD, CLEANTMPCMD, user, tpath, 0);
execl(CLEANTMPCMD, CLEANTMPCMD, user, tpath, NULL);
syslog(LOG_ERR, "TMPDIR cleanup(%s): execl(%s) failed: %m\n",
tpath, CLEANTMPCMD);
exit(1);

View File

@@ -297,8 +297,8 @@ zrefresh(void)
return -1;
case 0:
/* Child */
execlp("zrefresh", "zrefresh", 0);
execl(BINDIR "/zrefresh", "zrefresh", 0);
execlp("zrefresh", "zrefresh", NULL);
execl(BINDIR "/zrefresh", "zrefresh", NULL);
return -1;
default:
/* Parent */