From 5a6775be4fdbee0523a573af960568ca21f38c49 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Fri, 7 Dec 2007 00:26:24 +0000 Subject: 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. --- server/wallet-backend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') 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]"; } } -- cgit v1.2.3