]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-execl.patch
- patches from fedora (details in patches if not obvious)
[packages/util-linux.git] / util-linux-execl.patch
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.049657 seconds and 3 git commands to generate.