summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDubiousjim <dubiousjim@gmail.com>2013-07-05 00:21:24 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-09 07:02:43 +0000
commit7a628e7dc450e6d81a39944bfaa501543b5bb155 (patch)
tree088ee656002526f0dde8a5a90fb7aa84c9bb3011
parentad611237979a2fd85b4ac30188e72515da62a503 (diff)
downloadabuild-7a628e7dc450e6d81a39944bfaa501543b5bb155.tar.gz
abuild-7a628e7dc450e6d81a39944bfaa501543b5bb155.tar.bz2
abuild-7a628e7dc450e6d81a39944bfaa501543b5bb155.tar.xz
abuild-7a628e7dc450e6d81a39944bfaa501543b5bb155.zip
abuild-sign: fix a race condition
-rw-r--r--abuild-sign.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/abuild-sign.in b/abuild-sign.in
index 6207aab..96a1826 100644
--- a/abuild-sign.in
+++ b/abuild-sign.in
@@ -35,8 +35,8 @@ do_sign() {
tmpsigned=$(mktemp)
cat "$tmptargz" "$i" > "$tmpsigned"
rm -f "$tmptargz" "$sig"
+ chmod 644 "$tmpsigned"
mv "$tmpsigned" "$i"
- chmod 644 "$i"
if [ -z "$quiet" ]; then
echo "Signed $i"
fi