diff options
author | Luca Boccassi <bluca@debian.org> | 2022-11-06 23:58:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 23:58:53 +0100 |
commit | f10ad99ab07ca03b6190a500c49d3d76e35ab1f8 (patch) | |
tree | da864773cfad9176a3c1d86e3fe2497c4b094c63 /test | |
parent | loop-util: open lock fd read-only (diff) | |
parent | test-sysusers: check group creation with matching user entry (diff) | |
download | systemd-f10ad99ab07ca03b6190a500c49d3d76e35ab1f8.tar.xz systemd-f10ad99ab07ca03b6190a500c49d3d76e35ab1f8.zip |
Merge pull request #25107 from lucab/ups/sysusers-gid-check-username
sysusers: cross-check user and group names too
Diffstat (limited to 'test')
-rw-r--r-- | test/test-sysusers/test-15.expected-group | 1 | ||||
-rw-r--r-- | test/test-sysusers/test-15.expected-passwd | 1 | ||||
-rw-r--r-- | test/test-sysusers/test-15.initial-passwd | 1 | ||||
-rw-r--r-- | test/test-sysusers/test-15.input | 5 |
4 files changed, 8 insertions, 0 deletions
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 |