systemd/SOURCES/1126-test-sysusers-check-group-creation-with-matching-use.patch

52 lines
1.9 KiB
Diff

From 02a1fae5ccbb5d9c76db336733aa15d706e4c2df Mon Sep 17 00:00:00 2001
From: Luca BRUNO <luca.bruno@coreos.com>
Date: Thu, 3 Nov 2022 15:11:01 +0000
Subject: [PATCH] test-sysusers: check group creation with matching user entry
(cherry picked from commit 76ad8ef68d155d8ef4fc5bb59499dc95e39b9dfb)
Related: RHEL-72572
---
test/test-sysusers/test-15.expected-group | 1 +
test/test-sysusers/test-15.expected-passwd | 1 +
test/test-sysusers/test-15.initial-passwd | 1 +
test/test-sysusers/test-15.input | 5 +++++
4 files changed, 8 insertions(+)
create mode 100644 test/test-sysusers/test-15.expected-group
create mode 100644 test/test-sysusers/test-15.expected-passwd
create mode 100644 test/test-sysusers/test-15.initial-passwd
create mode 100644 test/test-sysusers/test-15.input
diff --git a/test/test-sysusers/test-15.expected-group b/test/test-sysusers/test-15.expected-group
new file mode 100644
index 0000000000..1dbf9013ee
--- /dev/null
+++ b/test/test-sysusers/test-15.expected-group
@@ -0,0 +1 @@
+root:x:0:
diff --git a/test/test-sysusers/test-15.expected-passwd b/test/test-sysusers/test-15.expected-passwd
new file mode 100644
index 0000000000..a880bd497f
--- /dev/null
+++ b/test/test-sysusers/test-15.expected-passwd
@@ -0,0 +1 @@
+root::0:0::/root:/bin/sh
diff --git a/test/test-sysusers/test-15.initial-passwd b/test/test-sysusers/test-15.initial-passwd
new file mode 100644
index 0000000000..a880bd497f
--- /dev/null
+++ b/test/test-sysusers/test-15.initial-passwd
@@ -0,0 +1 @@
+root::0:0::/root:/bin/sh
diff --git a/test/test-sysusers/test-15.input b/test/test-sysusers/test-15.input
new file mode 100644
index 0000000000..cc46672e7f
--- /dev/null
+++ b/test/test-sysusers/test-15.input
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+# Create proper group when matching user entry is in place.
+#
+#Type Name ID GECOS HOMEDIR
+u root 0 "Super User" /root