- restore the original file mode. This should fix #503027 ("osc vc" (or rather "vc...
authorMarcus Hüwe <suse-tux@gmx.de>
Sun, 17 May 2009 20:32:42 +0000 (20:32 +0000)
committerMarcus Hüwe <suse-tux@gmx.de>
Sun, 17 May 2009 20:32:42 +0000 (20:32 +0000)
vc

diff --git a/vc b/vc
index 363646e..d958e82 100755 (executable)
--- 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"