X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=site_perl%2FUID.pm;h=b4486c1e861f175c078bb986530ce3ce719449ac;hb=991f8f1fd45bb229c3d2d28abae7356d94534a03;hp=c9ecd8fc96dab843396fc9704f9e118deab3b20b;hpb=0ec706c23e1ea66d4ca5ca8791bcf41710422049;p=freeside.git diff --git a/site_perl/UID.pm b/site_perl/UID.pm index c9ecd8fc9..b4486c1e8 100644 --- a/site_perl/UID.pm +++ b/site_perl/UID.pm @@ -200,7 +200,7 @@ Swaps real and effective UIDs. =cut sub swapuid { - ($<,$>) = ($>,$<); + ($<,$>) = ($>,$<) if $< != $>; } =item getsecrets [ USER ] @@ -223,7 +223,7 @@ sub getsecrets { die "Illegal mapsecrets line for user?!" unless $secrets; ($datasrc, $db_user, $db_pass) = $conf->config($secrets) or die "Can't get secrets: $!"; - $FS::Conf::default_dir .= "/conf.$datasrc"; + $FS::Conf::default_dir = $conf_dir. "/conf.$datasrc"; ($datasrc, $db_user, $db_pass); } @@ -239,6 +239,10 @@ coderef into the hash %FS::UID::callback : $coderef = sub { warn "Hi, I'm returning your call!" }; $FS::UID::callback{'Package::Name'}; +=head1 VERSION + +$Id: UID.pm,v 1.8 1999-02-23 07:23:23 ivan Exp $ + =head1 BUGS Too many package-global variables. @@ -283,7 +287,16 @@ inlined suidsetup ivan@sisd.com 98-sep-12 $Log: UID.pm,v $ -Revision 1.5 1998-11-15 00:51:51 ivan +Revision 1.8 1999-02-23 07:23:23 ivan +oops, don't comment out &swapuid in &adminsuidsetup! + +Revision 1.7 1999/01/18 09:22:40 ivan +changes to track email addresses for email invoicing + +Revision 1.6 1998/11/15 05:27:48 ivan +bugfix for new configuration layout + +Revision 1.5 1998/11/15 00:51:51 ivan eliminated some warnings on certain fatal errors (well, it is less confusing) Revision 1.4 1998/11/13 09:56:52 ivan