summaryrefslogtreecommitdiff
path: root/vc
diff options
context:
space:
mode:
authorMarcus Hüwe <suse-tux@gmx.de>2009-05-17 20:32:42 +0000
committerMarcus Hüwe <suse-tux@gmx.de>2009-05-17 20:32:42 +0000
commit20e7f14bf3a0bd0405e3d55fc9030433b3ffab8b (patch)
treefd31aaaa224490d158895c9f72769d0c20ccf8eb /vc
parent1ad1dd272f1ab613d29eac17ee6b4f060b973dd9 (diff)
- restore the original file mode. This should fix #503027 ("osc vc" (or rather "vc") changes file mode of .changes file)
Diffstat (limited to 'vc')
-rwxr-xr-xvc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vc b/vc
index 363646e..d958e82 100755
--- a/vc
+++ b/vc
@@ -147,4 +147,6 @@ if [ -z "$message" ]; then
exit 0
fi
fi
+mode=`stat -c "%a" "$changelog"`
mv "$tmpfile" "$changelog"
+chmod $mode "$changelog"