webmin/webmin — pull request #144 by seabres (2014-04-24 11:43:48+00:00)
Title: Minor modification to let Webmin run with Apache without patching after installation.

When running Webmin through Apache, some perl includes cannot be found with the same path specification as miniserv.
The proposed path change works also for miniserv usage (backward compatible)..
When running under Apache with setuid rights, the perl call in the scripts must be changed by adding "-UX". This is easy to do, as Webmin installation does the same with the perl path. But there is one line (webmin-lib.pl call of oschooser) where another script is called with perl path specified. This wont have the -UX included after installation, so this does not work.
As oschooser.pl has the path of the perl interpreter already in itself (first line), it is not necessary to call with perl. If not done, change of perl path with -UX matches all occurrences.