]> git.ipfire.org Git - thirdparty/util-linux.git/commit
exec_shell: prevent ".: applet not found" error when SHELL env is not set.
authorosexp2000 <osexp2000@gmail.com>
Mon, 25 Jun 2018 01:34:31 +0000 (10:34 +0900)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2018 14:12:21 +0000 (16:12 +0200)
commitdc70eb940a7976011c2d61c682b18eee4804f705
treeec064f45346a974fc3b4a9ec370f4315194c1ac1
parentb39f9862ee0cf867ff0afd0be1531063ca3263f9
exec_shell: prevent ".: applet not found" error when SHELL env is not set.

When SHELL env is not set, it cause xstrdup(NULL) be executed, and result in weird error message ".: applet not found" instead of /bin/sh being used.
lib/exec_shell.c