summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Huewe <suse-tux@gmx.de>2014-10-06 08:37:31 +0200
committerMarcus Huewe <suse-tux@gmx.de>2014-10-06 08:37:31 +0200
commite2fe5e97b4a5cc51bbef6fa9d3875005d62c5306 (patch)
treeb31264ce747496c27969c152ba4394f6930b9bc8
parent7ed632036a7983915b2ba880516e0ba1c50732a9 (diff)
vc: fixed chown call to support a user/group with whitespaces
This fixes https://github.com/openSUSE/osc/issues/118
-rwxr-xr-xvc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vc b/vc
index bf57343..bf1b714 100755
--- a/vc
+++ b/vc
@@ -148,7 +148,7 @@ if [ -z "$message" ]; then
fi
fi
mode=`stat -c "%a" "$changelog"`
-user=`stat -c "%U:%G" "$changelog"`
+user=`stat -c "%u:%g" "$changelog"`
mv "$tmpfile" "$changelog"
chmod $mode "$changelog"
chown $user "$changelog"