diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-02-23 17:29:54 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-02-23 17:29:54 +0100 |
commit | 1c6d856721974390b14ff7f0ee3bde8b37418ff1 (patch) | |
tree | dd66486ba4aabd0643b3bd5837a0b0a13f714347 /tests | |
parent | d54243ab8eab01afad0b7877f7ae7bef310b091d (diff) |
allow names with one character in default validnames option and allow parentheses (taken from Fedora packages)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_common.c b/tests/test_common.c index f1db304..29c899a 100644 --- a/tests/test_common.c +++ b/tests/test_common.c @@ -2,7 +2,7 @@ test_common.c - simple test for the common module This file is part of the nss-pam-ldapd library. - Copyright (C) 2008, 2009, 2011, 2012 Arthur de Jong + Copyright (C) 2008, 2009, 2011, 2012, 2013 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -39,6 +39,8 @@ static void test_isvalidname(void) assert(!isvalidname("\\foo\\bar")); assert(!isvalidname("foo\\bar\\")); assert(isvalidname("me")); /* try short name */ + assert(isvalidname("f")); + assert(isvalidname("(foo bar)")); } /* the main program... */ |