summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2002-07-02 09:39:04 +0000
committerivan <ivan>2002-07-02 09:39:04 +0000
commit72395edddb5a3887092b51056d719584f7979005 (patch)
tree91cc67ac3a572c8d1b185a978d2803505ab99f41
parent4c9602a986e835d56471a090afe8e5bd8fae5108 (diff)
freebsd is sofa king broken
-rw-r--r--FS/bin/freeside-queued9
1 files changed, 7 insertions, 2 deletions
diff --git a/FS/bin/freeside-queued b/FS/bin/freeside-queued
index 42d00cebe..4ddc70a48 100644
--- a/FS/bin/freeside-queued
+++ b/FS/bin/freeside-queued
@@ -36,8 +36,13 @@ $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 unless $>;
-$< = $>;
+$< = FS::UID::freeside_uid;
+
+#freebsd is sofa king broken, won't setuid()
+$> = $FS::UID::freeside_uid;
+($<,$>) = ($>,$<);
+$> = $FS::UID::freeside_uid;
+
$ENV{HOME} = (getpwuid($>))[7]; #for ssh
adminsuidsetup $user;