]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cast NULL to char * when using execl
authorEgor Chelak <egor.chelak@gmail.com>
Thu, 29 Oct 2020 17:49:07 +0000 (19:49 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 11:33:31 +0000 (12:33 +0100)
commit032928b6e22429e718cb21050be64da0f294f6fb
tree42b2432c8d2e63278c91d2c1a7863181c2103c80
parent4069e159fc46c98191a9d26a0e6b9ff097c40996
cast NULL to char * when using execl

When calling variadic functions, NULL must be explicitly cast to a
desired type.
This is noted in the exec(3) manpage.

The call in newgrp.c was changed for consistency.

Signed-off-by: Egor Chelak <egor.chelak@gmail.com>
lib/exec_shell.c
lib/pty-session.c
login-utils/newgrp.c
login-utils/sulogin.c
login-utils/vipw.c
sys-utils/eject.c
sys-utils/setarch.c
term-utils/script.c
term-utils/scriptlive.c
text-utils/pg.c