diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2018-06-11 02:23:21 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2018-06-11 02:23:55 -0400 |
commit | c2da6a9e5bbdd33788674f1a6220290f7a6d0a8c (patch) | |
tree | 0b190baefd4a6da5d49ddb0ec0f2f9f8f2cd814d /pcr-testing/opensysusers/sysgid.patch | |
parent | 8f2ca73dd293f8af08a4d86bca28e59c56f54a45 (diff) | |
download | abslibre-c2da6a9e5bbdd33788674f1a6220290f7a6d0a8c.tar.gz abslibre-c2da6a9e5bbdd33788674f1a6220290f7a6d0a8c.tar.bz2 abslibre-c2da6a9e5bbdd33788674f1a6220290f7a6d0a8c.zip |
[opensysusers]: add missing groups adm,wheel,users (pcr-testing)
Diffstat (limited to 'pcr-testing/opensysusers/sysgid.patch')
-rw-r--r-- | pcr-testing/opensysusers/sysgid.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pcr-testing/opensysusers/sysgid.patch b/pcr-testing/opensysusers/sysgid.patch new file mode 100644 index 000000000..502217f5b --- /dev/null +++ b/pcr-testing/opensysusers/sysgid.patch @@ -0,0 +1,23 @@ +From 3f451ccfe5e5943d0ebc98f5f0d095a6c0ee11b4 Mon Sep 17 00:00:00 2001 +From: udeved <artoo@cromnix.org> +Date: Sun, 7 Jan 2018 11:08:10 +0100 +Subject: [PATCH] sysusers: use a system gid in add_group() if id='-' to get a + gid<1000 + +--- + sysusers | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sysusers b/sysusers +index 80442d3..d71fb61 100755 +--- a/sysusers ++++ b/sysusers +@@ -17,7 +17,7 @@ add_group() { + getent group "${name}" >/dev/null + if [ "$?" -ne 0 ]; then + if [ "${id}" == '-' ]; then +- groupadd "${name}" ++ groupadd -r "${name}" + else + if ! grep -qiw "${id}" /etc/group; then + groupadd -g "${id}" "${name}" |