Merge pull request #26269 from keszybz/sysusers-empty-etc-and-improved-messages

sysusers: improve messages and autocreate /etc
This commit is contained in:
Luca Boccassi
2023-02-01 23:14:59 +00:00
committed by GitHub
6 changed files with 139 additions and 86 deletions
+8
View File
@@ -99,6 +99,14 @@ $SYSUSERS --root=$TESTDIR \
compare $SOURCE/inline "(--inline --replace=…)"
echo "*** Testing --inline with no /etc"
rm -rf $TESTDIR/etc
$SYSUSERS --root=$TESTDIR --inline \
"u u1 222 - - /bin/zsh" \
"g g1 111"
compare $SOURCE/inline "(--inline)"
rm -f $TESTDIR/etc/sysusers.d/* $TESTDIR/usr/lib/sysusers.d/*
cat >$TESTDIR/etc/login.defs <<EOF