From 4700cd4415f26cc96d42ce64b3ee171087ace159 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 26 Jun 2013 13:15:31 -0400 Subject: Quote user and group names, in case someone thought putting a space in one was not a bloody stupid idea. --- debian/changelog | 7 +++++++ pre-commit.d/30store-metadata | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index a56df1e..61f0875 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +etckeeper (1.5) UNRELEASED; urgency=low + + * Quote user and group names, in case someone thought putting a space + in one was not a bloody stupid idea. + + -- Joey Hess Wed, 26 Jun 2013 13:15:03 -0400 + etckeeper (1.4) unstable; urgency=low * Deal with unix^wlinux portability nonsense. diff --git a/pre-commit.d/30store-metadata b/pre-commit.d/30store-metadata index d445db1..03ce475 100755 --- a/pre-commit.d/30store-metadata +++ b/pre-commit.d/30store-metadata @@ -101,10 +101,10 @@ generate_metadata() { s/^/$q/; s/$/$q/; if ($uid != $>) { - printf "maybe chown %s %s\n", uidname($uid), $_; + printf "maybe chown $q%s$q %s\n", uidname($uid), $_; } if ($gid != $)) { - printf "maybe chgrp %s %s\n", gidname($gid), $_; + printf "maybe chgrp $q%s$q %s\n", gidname($gid), $_; } printf "maybe chmod %04o %s\n", $mode & 07777, $_; ' -- cgit v1.2.3