projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cb61ec8
)
bugfix to accept shells that evaluate to false in perl, like the empty string.
author
ivan
<ivan>
Wed, 28 Jun 2000 12:52:22 +0000
(12:52 +0000)
committer
ivan
<ivan>
Wed, 28 Jun 2000 12:52:22 +0000
(12:52 +0000)
FS/FS/svc_acct.pm
patch
|
blob
|
history
diff --git
a/FS/FS/svc_acct.pm
b/FS/FS/svc_acct.pm
index
339081a
..
14979ed
100644
(file)
--- a/
FS/FS/svc_acct.pm
+++ b/
FS/FS/svc_acct.pm
@@
-381,8
+381,8
@@
sub check {
unless ( $recref->{username} eq 'sync' ) {
my($shell);
unless ( $recref->{username} eq 'sync' ) {
my($shell);
- if (
$shell = (grep $_ eq $recref->{shell}, @shells)[0]
) {
- $recref->{shell} =
$shell
;
+ if (
grep $_ eq $recref->{shell}, @shells
) {
+ $recref->{shell} =
(grep $_ eq $recref->{shell}, @shells)[0]
;
} else {
return "Illegal shell \`". $self->shell. "\'; ".
$conf->dir. "/shells contains: @shells";
} else {
return "Illegal shell \`". $self->shell. "\'; ".
$conf->dir. "/shells contains: @shells";
@@
-473,7
+473,7
@@
sub radius {
=head1 VERSION
=head1 VERSION
-$Id: svc_acct.pm,v 1.
4 2000-06-15 13:35:47
ivan Exp $
+$Id: svc_acct.pm,v 1.
5 2000-06-28 12:52:22
ivan Exp $
=head1 BUGS
=head1 BUGS