Skip to content

Commit

Permalink
vc: fixed chown call to support a user/group with whitespaces
Browse files Browse the repository at this point in the history
This fixes openSUSE/osc#118
  • Loading branch information
marcus-h committed Oct 6, 2014
1 parent 7ed6320 commit e2fe5e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit e2fe5e9

Please sign in to comment.