diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-05-04 09:02:59 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-05-04 09:02:59 +0200 |
commit | 06008e59a1dfbda99eace3d5e66d194b7e8e5c38 (patch) | |
tree | 5e8aa1dde4792b8523b4bef4005aef89afd69802 /fripost-searchalias | |
parent | 8bbf67de5056e1a0ee59dc1ff104223ec32df2f2 (diff) |
Adding a flag --force
Diffstat (limited to 'fripost-searchalias')
-rwxr-xr-x | fripost-searchalias | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fripost-searchalias b/fripost-searchalias index 2e5d35f..1c674fe 100755 --- a/fripost-searchalias +++ b/fripost-searchalias @@ -17,8 +17,8 @@ B<fripost-searchalias> [B<--debug>] [I<goto> [I<from>]] B<fripost-seardomain> list virtual aliases matching exactly I<from>, targetting to I<goto>. -Wildcards I<*> can appear in I<goto> or I<from>, to match zero or more -characters. +Wildcards I<*> can appear in the login part of I<from>, to match zero +or more characters. If no I<from> is given, list all aliases whose target matches I<goto>. If neither I<goto> nor I<from> are given, B<fripost-searchalias> list all existing virtual aliases. @@ -115,8 +115,8 @@ GetOptions( my $ldap = Fripost::Schema->new( $conf ); my %alias; -$alias{goto} = $ARGV[0] if defined $ARGV[0]; -$alias{address} = $ARGV[1] if defined $ARGV[1]; +$alias{goto} = $ARGV[0] if (defined $ARGV[0]) and $ARGV[0] ne ''; +$alias{address} = $ARGV[1] if (defined $ARGV[1]) and $ARGV[1] ne ''; if (defined $alias{address}) { my ($u,$d) = split /\@/, $alias{address}, 2; |