Support running under usermin
authorJamie Cameron <jcameron@webmin.com>
Mon, 3 Jan 2011 01:57:57 +0000 (17:57 -0800)
committerJamie Cameron <jcameron@webmin.com>
Mon, 3 Jan 2011 01:57:57 +0000 (17:57 -0800)
man/man-lib.pl

index 962e9d6..d59da52 100755 (executable)
@@ -3,6 +3,9 @@
 BEGIN { push(@INC, ".."); };
 use WebminCore;
 &init_config();
+if ($module_info{'usermin'}) {
+       &switch_to_remote_user();
+       }
 
 $google_host = "www.google.com";
 $google_port = 80;