]> 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)
committerosexp2000 <osexp2000@gmail.com>
Mon, 25 Jun 2018 01:34:31 +0000 (10:34 +0900)
commit82adb91f6eff659474007cb776ef0091c95aac1f
tree9e378a78f81fb19301b256c11a1d7471f5d91dd7
parent917f53cf13c36d32c175f80f2074576595830573
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