Set GIDs concurrently, to avoid MacOS bug
authorJamie Cameron <jcameron@webmin.com>
Mon, 30 Jul 2007 20:41:21 +0000 (20:41 +0000)
committerJamie Cameron <jcameron@webmin.com>
Mon, 30 Jul 2007 20:41:21 +0000 (20:41 +0000)
proc/proc-lib.pl

index 7e46f9f..e211df1 100644 (file)
@@ -96,12 +96,12 @@ return if ($module_info{'usermin'});        # already switched!
 if ($access{'uid'} < 0) {
        local @u = getpwnam($remote_user);
        @u || &error("Failed to find user $remote_user");
-       $( = $u[3]; $) = "$u[3] $u[3]";
+       ($(, $)) = ($u[3], "$u[3] $u[3]");
        ($>, $<) = ($u[2], $u[2]);
        }
 elsif ($access{'uid'}) {
        local @u = getpwuid($access{'uid'});
-       $( = $u[3]; $) = "$u[3] $u[3]";
+       ($(, $)) = ($u[3], "$u[3] $u[3]");
        ($>, $<) = ($u[2], $u[2]);
        }
 }