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:
@@ -141,7 +141,7 @@ main(argc, argv)
|
|||||||
"FILE:/opt/dcelocal/var/security/creds/dcecred_%8.8x",
|
"FILE:/opt/dcelocal/var/security/creds/dcecred_%8.8x",
|
||||||
pag);
|
pag);
|
||||||
esetenv("KRB5CCNAME",ccname,1);
|
esetenv("KRB5CCNAME",ccname,1);
|
||||||
execl("/bin/csh","csh",0);
|
execl("/bin/csh", "csh", NULL);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fprintf(stderr," Not a good pag value\n");
|
fprintf(stderr," Not a good pag value\n");
|
||||||
|
@@ -1884,7 +1884,7 @@ cleantmpdir(jid, tpath, user)
|
|||||||
tpath);
|
tpath);
|
||||||
break;
|
break;
|
||||||
case 0:
|
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",
|
syslog(LOG_ERR, "TMPDIR cleanup(%s): execl(%s) failed: %m\n",
|
||||||
tpath, CLEANTMPCMD);
|
tpath, CLEANTMPCMD);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@@ -297,8 +297,8 @@ zrefresh(void)
|
|||||||
return -1;
|
return -1;
|
||||||
case 0:
|
case 0:
|
||||||
/* Child */
|
/* Child */
|
||||||
execlp("zrefresh", "zrefresh", 0);
|
execlp("zrefresh", "zrefresh", NULL);
|
||||||
execl(BINDIR "/zrefresh", "zrefresh", 0);
|
execl(BINDIR "/zrefresh", "zrefresh", NULL);
|
||||||
return -1;
|
return -1;
|
||||||
default:
|
default:
|
||||||
/* Parent */
|
/* Parent */
|
||||||
|
Reference in New Issue
Block a user