projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d81f0f6
)
su -m only works on Solaris 11 and up
author
Jamie Cameron
<jcameron@webmin.com>
Tue, 16 Jun 2009 05:03:26 +0000
(
05:03
+0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Tue, 16 Jun 2009 05:03:26 +0000
(
05:03
+0000)
web-lib-funcs.pl
patch
|
blob
|
history
diff --git
a/web-lib-funcs.pl
b/web-lib-funcs.pl
index
31a4039
..
909ba0d
100755
(executable)
--- a/
web-lib-funcs.pl
+++ b/
web-lib-funcs.pl
@@
-8179,7
+8179,8
@@
if ($uinfo[8] ne "/bin/sh" && $uinfo[8] !~ /\/bash$/) {
$shellarg = " -s /bin/sh";
}
elsif ($gconfig{'os_type'} eq 'freebsd' ||
- $gconfig{'os_type'} eq 'solaris' ||
+ $gconfig{'os_type'} eq 'solaris' &&
+ $gconfig{'os_version'} >= 11 ||
$gconfig{'os_type'} eq 'macos') {
# Use -m and force /bin/sh
@args = ( "/bin/sh", "-c", quotemeta(join(" ", @args)) );