aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-09-27 15:21:28 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-09-27 15:21:28 -0700
commit1896f4fafb5174edb2a8c8cab2898dd8595e8e35 (patch)
tree392abea88e89f78976c678a7299e3f5ca6596b78
parent5f02af6a32cb00cf12bf8987ffc75d936799b8c3 (diff)
downloadkup-1896f4fafb5174edb2a8c8cab2898dd8595e8e35.tar.gz
korgupload: fix missing paren
-rwxr-xr-xkorgupload14
1 files changed, 7 insertions, 7 deletions
diff --git a/korgupload b/korgupload
index 5a5a66d..da2c6d0 100755
--- a/korgupload
+++ b/korgupload
@@ -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");
}
}