diff options
author | H. Peter Anvin <hpa@zytor.com> | 2011-09-27 15:21:28 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2011-09-27 15:21:28 -0700 |
commit | 1896f4fafb5174edb2a8c8cab2898dd8595e8e35 (patch) | |
tree | 392abea88e89f78976c678a7299e3f5ca6596b78 | |
parent | 5f02af6a32cb00cf12bf8987ffc75d936799b8c3 (diff) | |
download | kup-1896f4fafb5174edb2a8c8cab2898dd8595e8e35.tar.gz |
korgupload: fix missing paren
-rwxr-xr-x | korgupload | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -519,9 +519,9 @@ sub put_file(@) if (-e $data_path.$stem) { fatal("Filename conflict (compressed and uncompressed)"); } - if ((-e $data_path.$stem.'.gz' && ! -f _) - (-e $data_path.$stem.'.bz2' && ! -f _) - (-e $data_path.$stem.'.xz' && ! -f _) + if ((-e $data_path.$stem.'.gz' && ! -f _) || + (-e $data_path.$stem.'.bz2' && ! -f _) || + (-e $data_path.$stem.'.xz' && ! -f _) || (-e $data_path.$stem.'.sign' && ! -f _)) { fatal("Trying to overwrite a non-file"); } @@ -645,9 +645,9 @@ sub move_file(@) fatal("Filename conflict (compressed and uncompressed)"); } - if ((-e $data_path.$to_stem.'.gz' && ! -f _) - (-e $data_path.$to_stem.'.bz2' && ! -f _) - (-e $data_path.$to_stem.'.xz' && ! -f _) + if ((-e $data_path.$to_stem.'.gz' && ! -f _) || + (-e $data_path.$to_stem.'.bz2' && ! -f _) || + (-e $data_path.$to_stem.'.xz' && ! -f _) || (-e $data_path.$to_stem.'.sign' && ! -f _)) { fatal("Trying to overwrite a non-file"); } @@ -671,7 +671,7 @@ sub move_file(@) } if (!rename($data_path.$from, $data_path.$to) || - !rename($data_path.$from.'.sign', $data_path.$to.'.sign') { + !rename($data_path.$from.'.sign', $data_path.$to.'.sign')) { fatal("MOVE of plain file failed"); } } |