]> git.pld-linux.org Git - packages/util-linux.git/blame - util-linux-execl.patch
- up to 2.13-pre7, WIP
[packages/util-linux.git] / util-linux-execl.patch
CommitLineData
5545a732
JR
1- NULL is better than zero at end of execl()
2
3--- util-linux-2.12p/login-utils/agetty.c.execl 2005-07-12 15:53:25.000000000 +0200
4+++ util-linux-2.12p/login-utils/agetty.c 2005-07-12 15:53:49.000000000 +0200
5@@ -382,7 +382,7 @@
6
7 /* Let the login program take care of password validation. */
8
9- (void) execl(options.login, options.login, "--", logname, (char *) 0);
10+ (void) execl(options.login, options.login, "--", logname, NULL);
11 error(_("%s: can't exec %s: %m"), options.tty, options.login);
12 exit(0); /* quiet GCC */
13 }
14--- util-linux-2.12p/misc-utils/script.c.execl 2005-07-12 15:54:17.000000000 +0200
15+++ util-linux-2.12p/misc-utils/script.c 2005-07-12 15:54:28.000000000 +0200
16@@ -325,9 +325,9 @@
17 shname = shell;
18
19 if (cflg)
20- execl(shell, shname, "-c", cflg, 0);
21+ execl(shell, shname, "-c", cflg, NULL);
22 else
23- execl(shell, shname, "-i", 0);
24+ execl(shell, shname, "-i", NULL);
25
26 perror(shell);
27 fail();
This page took 0.287761 seconds and 4 git commands to generate.