* libmisc/shell.c, src/su.c: Execute the scripts with "sh -"

rather than "sh".
This commit is contained in:
nekral-guest
2009-07-22 13:35:57 +00:00
parent db38a728d1
commit 24cfe44b07
3 changed files with 11 additions and 5 deletions

View File

@@ -85,7 +85,7 @@ int shell (const char *file, /*@null@*/const char *arg, char *const envp[])
* Assume this is a shell script (with no shebang).
* Interpret it with /bin/sh
*/
execle (SHELL, "sh", file, (char *)0, envp);
execle (SHELL, "sh", "-", file, (char *)0, envp);
err = errno;
}