diff options
author | Russ Allbery <rra@stanford.edu> | 2007-12-07 00:26:24 +0000 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2007-12-07 00:26:24 +0000 |
commit | 5a6775be4fdbee0523a573af960568ca21f38c49 (patch) | |
tree | a8c0ed31e880143825f8760bc59e27babbe966a7 /server/wallet-backend | |
parent | b21e806902b9d9342c5990e7b42cbe99e98af704 (diff) |
Allow the empty string in wallet-backend arguments.
When writing to a file in the wallet client program, remove an old
backup file before creating a new backup and don't fail if the backup
already exists.
Diffstat (limited to 'server/wallet-backend')
-rwxr-xr-x | server/wallet-backend | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/wallet-backend b/server/wallet-backend index c2be5e7..4af7490 100755 --- a/server/wallet-backend +++ b/server/wallet-backend @@ -120,7 +120,7 @@ sub check_args { my %exclude = map { $_ => 1 } @$exclude; for (my $i = 1; $i <= @args; $i++) { next if $exclude{$i}; - unless ($args[$i - 1] =~ m,^[\w_/.-]+\z,) { + unless ($args[$i - 1] =~ m,^[\w_/.-]*\z,) { error "invalid characters in argument: $args[$i - 1]"; } } |