freeside/FS/bin freeside-selfservice-server,1.13,1.14
ivan
ivan at pouncequick.420.am
Wed Sep 15 01:57:47 PDT 2004
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory pouncequick:/tmp/cvs-serv30306
Modified Files:
freeside-selfservice-server
Log Message:
it would help to set the permissions on the lockfile right, so the kids can open it...
Index: freeside-selfservice-server
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-selfservice-server,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- freeside-selfservice-server 15 Sep 2004 08:30:20 -0000 1.13
+++ freeside-selfservice-server 15 Sep 2004 08:57:11 -0000 1.14
@@ -41,7 +41,6 @@
my $pid_file = "/var/run/freeside-selfservice-server.$user.$machine.pid";
my $lock_file = "/usr/local/etc/freeside/selfservice.$machine.writelock";
-open(LOCKFILE,">$lock_file") or die "can't open $lock_file: $!";
&init($user);
@@ -201,6 +200,10 @@
#false laziness w/freeside-queued
my $freeside_gid = scalar(getgrnam('freeside'))
or die "can't setgid to freeside group\n";
+
+ open(LOCKFILE,">$lock_file") or die "can't open $lock_file: $!";
+ chown $FS::UID::freeside_uid, $freeside_gid, $lock_file;
+
$) = $freeside_gid;
$( = $freeside_gid;
#if freebsd can't setuid(), presumably it can't setgid() either. grr fleabsd
More information about the freeside-commits
mailing list