diff --git a/src/modules/users/Tests.cpp b/src/modules/users/Tests.cpp index f44e73f6a..4593b5890 100644 --- a/src/modules/users/Tests.cpp +++ b/src/modules/users/Tests.cpp @@ -527,6 +527,7 @@ UserTests::testUserUmask_data() QTest::newRow( "-wrd " ) << "tests/8e-issue-2362.conf" << 0214 << 0563; QTest::newRow( "bogus" ) << "tests/8f-issue-2362.conf" << -1 << -1; QTest::newRow( "good2" ) << "tests/8g-issue-2362.conf" << 0750 << 0027; + QTest::newRow( "numrc" ) << "tests/8h-issue-2362.conf" << 0751 << 0026; } void diff --git a/src/modules/users/tests/8h-issue-2362.conf b/src/modules/users/tests/8h-issue-2362.conf new file mode 100644 index 000000000..a4e7ba548 --- /dev/null +++ b/src/modules/users/tests/8h-issue-2362.conf @@ -0,0 +1,12 @@ +# SPDX-FileCopyrightText: no +# SPDX-License-Identifier: CC0-1.0 +# +--- +user: + shell: /usr/bin/new + forbidden_names: + - me + - myself + - moi + # This is a number, which is interpreted by YAML as decimal even with a leading 0 + home_permissions: 0751