summaryrefslogtreecommitdiffstats
path: root/test/TEST-21-SYSUSERS
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2018-01-24 11:46:10 +0100
committerMichael Vogt <mvo@ubuntu.com>2018-01-25 12:51:06 +0100
commite2c2060f7b3b11fa3cca8899d80963b7a05cc4ab (patch)
tree52d03a94a23eaf35453b855db5d59cf7591971f8 /test/TEST-21-SYSUSERS
parenttest: add TEST-21-SYSUSERS test (diff)
downloadsystemd-e2c2060f7b3b11fa3cca8899d80963b7a05cc4ab.tar.xz
systemd-e2c2060f7b3b11fa3cca8899d80963b7a05cc4ab.zip
sysusers: make ADD_GROUP always create a group
Do not merge group creation with user creation because with the new uid:gid syntax this can result in confusing (and unwanted) behavior.
Diffstat (limited to 'test/TEST-21-SYSUSERS')
-rw-r--r--test/TEST-21-SYSUSERS/test-4.expected-group1
-rw-r--r--test/TEST-21-SYSUSERS/test-4.expected-passwd2
-rw-r--r--test/TEST-21-SYSUSERS/test-4.input3
3 files changed, 6 insertions, 0 deletions
diff --git a/test/TEST-21-SYSUSERS/test-4.expected-group b/test/TEST-21-SYSUSERS/test-4.expected-group
new file mode 100644
index 0000000000..64913a5f50
--- /dev/null
+++ b/test/TEST-21-SYSUSERS/test-4.expected-group
@@ -0,0 +1 @@
+xxx:x:310:
diff --git a/test/TEST-21-SYSUSERS/test-4.expected-passwd b/test/TEST-21-SYSUSERS/test-4.expected-passwd
new file mode 100644
index 0000000000..e0370a4023
--- /dev/null
+++ b/test/TEST-21-SYSUSERS/test-4.expected-passwd
@@ -0,0 +1,2 @@
+yyy:x:311:310::/:/sbin/nologin
+xxx:x:312:310::/:/sbin/nologin
diff --git a/test/TEST-21-SYSUSERS/test-4.input b/test/TEST-21-SYSUSERS/test-4.input
new file mode 100644
index 0000000000..620423eab4
--- /dev/null
+++ b/test/TEST-21-SYSUSERS/test-4.input
@@ -0,0 +1,3 @@
+g xxx 310
+u yyy 311:310
+u xxx 312:310