diff options
| author | fukachan <fukachan> | 2002-07-23 13:03:11 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-07-23 13:03:11 +0000 |
| commit | 96d4cb5f7530a624671dfb00c4740bc6b5501d5d (patch) | |
| tree | 54ba34fbefe086c8436c5340cc2cd6c22b7e0cec /fml/lib/FML/Command/UserControl.pm | |
| parent | 980b0d8c7100618bfcb5bcb210632b7850049a5b (diff) | |
| download | fml8-96d4cb5f7530a624671dfb00c4740bc6b5501d5d.tar.gz fml8-96d4cb5f7530a624671dfb00c4740bc6b5501d5d.tar.bz2 fml8-96d4cb5f7530a624671dfb00c4740bc6b5501d5d.zip | |
reconstruct SQL functions in IO::Adapter
new IO::Adapter $map, $config;
Diffstat (limited to 'fml/lib/FML/Command/UserControl.pm')
| -rw-r--r-- | fml/lib/FML/Command/UserControl.pm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/fml/lib/FML/Command/UserControl.pm b/fml/lib/FML/Command/UserControl.pm index 52d94bf0..8eeef28d 100644 --- a/fml/lib/FML/Command/UserControl.pm +++ b/fml/lib/FML/Command/UserControl.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: UserControl.pm,v 1.12 2002/07/14 15:15:28 fukachan Exp $ +# $FML: UserControl.pm,v 1.13 2002/07/17 12:13:23 fukachan Exp $ # package FML::Command::UserControl; @@ -51,6 +51,7 @@ sub new sub useradd { my ($self, $curproc, $command_args, $uc_args) = @_; + my $config = $curproc->config(); my $address = $uc_args->{ address }; my $maplist = $uc_args->{ maplist }; my $msg_args = $command_args->{ msg_args }; @@ -61,7 +62,7 @@ sub useradd unless ($cred->has_address_in_map($map, $address)) { $msg_args->{ _arg_map } = $curproc->which_map_nl($map); - my $obj = new IO::Adapter $map; + my $obj = new IO::Adapter $map, $config; $obj->touch(); # create a new map entry (e.g. file) if needed. $obj->add( $address ); unless ($obj->error()) { @@ -93,6 +94,7 @@ sub useradd sub userdel { my ($self, $curproc, $command_args, $uc_args) = @_; + my $config = $curproc->config(); my $address = $uc_args->{ address }; my $maplist = $uc_args->{ maplist }; my $msg_args = $command_args->{ msg_args }; @@ -103,7 +105,7 @@ sub userdel if ($cred->has_address_in_map($map, $address)) { $msg_args->{ _arg_map } = $curproc->which_map_nl($map); - my $obj = new IO::Adapter $map; + my $obj = new IO::Adapter $map, $config; $obj->delete( $address ); unless ($obj->error()) { Log("removed $address from map=$map"); @@ -133,12 +135,13 @@ sub userdel sub userlist { my ($self, $curproc, $command_args, $uc_args) = @_; + my $config = $curproc->config(); my $maplist = $uc_args->{ maplist }; my $wh = $uc_args->{ wh }; my $style = $curproc->get_print_style(); for my $map (@$maplist) { - my $obj = new IO::Adapter $map; + my $obj = new IO::Adapter $map, $config; if (defined $obj) { my $x = ''; |
