diff options
author | H. Peter Anvin <hpa@zytor.com> | 2011-10-19 18:42:55 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2011-10-19 18:42:55 -0700 |
commit | 164e8b07c411f2edcef2d126a9e29c53f37a6c4e (patch) | |
tree | 711fdd6238bb9dbdd690b96d409186a49c9f2307 | |
parent | 8fc3b5563ffffa9fb669e2740e752041f57961a7 (diff) | |
download | kup-164e8b07c411f2edcef2d126a9e29c53f37a6c4e.tar.gz |
kup-server: fix put of a noncompressed file
The list of files to transfer was mistakenly hardcoded as the
one for compressed files; correct this by using @install_ext
as was intended.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rwxr-xr-x | kup-server | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -720,14 +720,14 @@ sub put_file(@) } my $ok = 1; - foreach my $e ('.sign', keys(%zformats)) { + foreach my $e (@install_ext) { if (-e $data_path.$stem.$e && ! -f _) { fatal("Trying to overwrite a non-file"); } } my @undoes = (); - foreach my $e ('.sign', keys(%zformats)) { + foreach my $e (@install_ext) { my $target = $data_path.$stem.$e; if (!rename($tmpdir.'/data'.$e, $target)) { unlink(@undoes); |