diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-06-30 13:45:17 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-06-30 13:45:17 +0200 |
commit | 16614e9babf6b920587597f35c5b2122ac815e16 (patch) | |
tree | 5ef19080e90bd76b69617d7f72a08f42b4624f44 /loginutils | |
parent | e9b3fcc3e457642788f7011fe9f7fe9917156fa4 (diff) | |
download | busybox-w32-16614e9babf6b920587597f35c5b2122ac815e16.tar.gz busybox-w32-16614e9babf6b920587597f35c5b2122ac815e16.tar.bz2 busybox-w32-16614e9babf6b920587597f35c5b2122ac815e16.zip |
*: change execl sentinels from NULL to (char*)0
Signed-off-by: Rich Felker <dalias@aerifal.cx>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/getty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c index e5d13bed6..0f060ae6c 100644 --- a/loginutils/getty.c +++ b/loginutils/getty.c | |||
@@ -695,6 +695,6 @@ int getty_main(int argc UNUSED_PARAM, char **argv) | |||
695 | /* We use PATH because we trust that root doesn't set "bad" PATH, | 695 | /* We use PATH because we trust that root doesn't set "bad" PATH, |
696 | * and getty is not suid-root applet */ | 696 | * and getty is not suid-root applet */ |
697 | /* With -n, logname == NULL, and login will ask for username instead */ | 697 | /* With -n, logname == NULL, and login will ask for username instead */ |
698 | BB_EXECLP(G.login, G.login, "--", logname, NULL); | 698 | BB_EXECLP(G.login, G.login, "--", logname, (char *)0); |
699 | bb_error_msg_and_die("can't execute '%s'", G.login); | 699 | bb_error_msg_and_die("can't execute '%s'", G.login); |
700 | } | 700 | } |