mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
execute "safe applets" exev if not standalone shell
(patch by "Eric Spakman" <E.Spakman@inter.nl.net>)
This commit is contained in:
parent
886bb0df66
commit
62a6983a81
@ -3717,7 +3717,7 @@ shellexec(char **argv, const char *path, int idx)
|
||||
|
||||
clearredir(1);
|
||||
envp = environment();
|
||||
if (strchr(argv[0], '/')
|
||||
if (strchr(argv[0], '/') || is_safe_applet(argv[0])
|
||||
#ifdef CONFIG_FEATURE_SH_STANDALONE_SHELL
|
||||
|| find_applet_by_name(argv[0])
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user