summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2002-07-02 10:14:45 +0000
committerivan <ivan>2002-07-02 10:14:45 +0000
commit00613fa78edb718fdc96640fe08d806079a81ad2 (patch)
tree99cf47dc89c9283efa468d56ae5b48dcdd789821 /FS
parent26a45c49727ef4505a2f1875aa7dd04be9bbdceb (diff)
grr old openssh grr freebsd
Diffstat (limited to 'FS')
-rw-r--r--FS/bin/freeside-queued11
1 files changed, 9 insertions, 2 deletions
diff --git a/FS/bin/freeside-queued b/FS/bin/freeside-queued
index 46d39f2b0..20a6ff9fb 100644
--- a/FS/bin/freeside-queued
+++ b/FS/bin/freeside-queued
@@ -36,10 +36,17 @@ $sigint = 0;
$SIG{INT} = sub { warn "SIGINT received; shutting down\n"; $sigint++; };
$SIG{TERM} = sub { warn "SIGTERM received; shutting down\n"; $sigterm++; };
-$< = $FS::UID::freeside_uid;
+my $freeside_gid = scalar(getgrnam('freeside'))
+ or die "can't setgid to freeside group\n";
+$) = $freeside_gid;
+$( = $freeside_gid;
+#if freebsd can't setuid(), presumably it can't setgid() either. grr fleabsd
+($<,$>) = ($>,$<);
+$> = $freeside_gid;
-#freebsd is sofa king broken, won't setuid()
$> = $FS::UID::freeside_uid;
+$< = $FS::UID::freeside_uid;
+#freebsd is sofa king broken, won't setuid()
($<,$>) = ($>,$<);
$> = $FS::UID::freeside_uid;