X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=site_perl%2Fsvc_acct.pm;h=1ba92aec1854769eaafca7fab4c8b77154f78050;hp=473f78b24e8e27a33fc94d55fc513f0831554c11;hb=963a290ad2d9a89b45b66ac9d9ccdd612a756f11;hpb=4a5b07fb140e6abe0c29122cf349ff3f917e9610 diff --git a/site_perl/svc_acct.pm b/site_perl/svc_acct.pm index 473f78b24..1ba92aec1 100644 --- a/site_perl/svc_acct.pm +++ b/site_perl/svc_acct.pm @@ -120,6 +120,7 @@ sub insert { local $SIG{QUIT} = 'IGNORE'; local $SIG{TERM} = 'IGNORE'; local $SIG{TSTP} = 'IGNORE'; + local $SIG{PIPE} = 'IGNORE'; $error = $self->check; return $error if $error; @@ -188,6 +189,7 @@ sub delete { local $SIG{QUIT} = 'IGNORE'; local $SIG{TERM} = 'IGNORE'; local $SIG{TSTP} = 'IGNORE'; + local $SIG{PIPE} = 'IGNORE'; $error = $self->SUPER::delete; return $error if $error; @@ -232,7 +234,7 @@ sub replace { if $old->username ne $new->username && qsearchs( 'svc_acct', { 'username' => $new->username } ); - return "Can't change uid!" if $old->uid ne $new->uid; + return "Can't change uid!" if $old->uid != $new->uid; #change homdir when we change username $new->setfield('dir', '') if $old->username ne $new->username; @@ -242,6 +244,7 @@ sub replace { local $SIG{QUIT} = 'IGNORE'; local $SIG{TERM} = 'IGNORE'; local $SIG{TSTP} = 'IGNORE'; + local $SIG{PIPE} = 'IGNORE'; $error = $new->SUPER::replace($old); return $error if $error; @@ -440,7 +443,7 @@ sub check { =head1 VERSION -$Id: svc_acct.pm,v 1.4 1998-12-30 00:30:45 ivan Exp $ +$Id: svc_acct.pm,v 1.6 1999-01-25 12:26:15 ivan Exp $ =head1 BUGS @@ -482,7 +485,13 @@ arbitrary radius attributes ivan@sisd.com 98-aug-13 pod and FS::conf ivan@sisd.com 98-sep-22 $Log: svc_acct.pm,v $ -Revision 1.4 1998-12-30 00:30:45 ivan +Revision 1.6 1999-01-25 12:26:15 ivan +yet more mod_perl stuff + +Revision 1.5 1999/01/18 21:58:09 ivan +esthetic: eq and ne were used in a few places instead of == and != + +Revision 1.4 1998/12/30 00:30:45 ivan svc_ stuff is more properly OO - has a common superclass FS::svc_Common Revision 1.2 1998/11/13 09:56:55 ivan