summaryrefslogtreecommitdiff
path: root/tests/test-userspec.c
Commit message (Collapse)AuthorAgeFilesLines
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* maint: Run 'make update-copyright'Paul Eggert2019-12-311-1/+1
|
* test-userspec.c: don't print NULLJim Meyering2019-03-091-2/+4
| | | | | | | | * tests/test-userspec.c (main): A test release of gcc, 9.0.1 20190310, warned that this test would attempt to print a NULL pointer via a %s printf format. Fix that and remove the unnecessary preceding "!diag" conjunct. Also add a comment.
* maint: Run 'make update-copyright'Paul Eggert2019-01-011-1/+1
|
* maint: Run 'make update-copyright'Paul Eggert2018-01-011-1/+1
|
* all: prefer https: URLsPaul Eggert2017-09-131-1/+1
|
* version-etc: new yearPaul Eggert2017-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* test-userspec.c: do not trigger gcc's new -Wmisleading-indentationJim Meyering2016-03-171-6/+3
| | | | | | | | | | | | * tests/test-userspec.c (main): Remove unnecessary braces and fix misleading indentation. Here is the diagnostic gcc-6.0-to-be issued: test-userspec.c:176:9: error: statement is indented as if it were \ guarded by... [-Werror=misleading-indentation] { ^ test-userspec.c:173:7: note: ...this 'if' clause, but it is not if (!diag && !T[i].result) ^~
* version-etc: new yearPaul Eggert2016-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* version-etc: new yearPaul Eggert2014-12-311-1/+1
| | | | | | * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date. * all files: Run 'make update-copyright'.
* test-userspec: don't look up numeric user namesJim Meyering2014-07-181-19/+19
| | | | | | | * tests/test-userspec.c: I found a system for which getpwnam("0") returned a pointer to a non-root user's entry, and that made the test fail. (T): Prefix each numeric input with "+", to inhibit lookup.
* maint: update copyrightEric Blake2014-01-011-1/+1
| | | | | | I ran 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
* userspec: support optional parameters to parse_user_spec()Pádraig Brady2013-09-211-0/+11
| | | | | | | | * lib/userspec.c (parse_user_spec): If the GID param is NULL, then avoid group processing and treat the full spec as a user. (parse_with_separator): Allow the USERNAME and GROUPNAME to be optional params (NULL), in which case they're ignored. * tests/test-userspec.c (main): Ensure NULL params are ignored.
* maint: update all copyright year number rangesEric Blake2013-01-011-1/+1
| | | | | | Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* maint: indent with spaces, not TABs, and add a rule to check thisJim Meyering2011-07-051-5/+5
| | | | | | | | | | | * tests/test-userspec.c: Indent with spaces, not TABs. * tests/test-argp.c: Likewise. * tests/test-c-stack2.sh: Likewise. * tests/test-parse-duration.sh: Likewise * m4/strtod.m4: Likewise. * m4/alloca.m4: Likewise. * m4/pselect.m4: Likewise. * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
* maint: update almost all copyright ranges to include 2011Jim Meyering2011-01-011-1/+1
| | | | Run the new "make update-copyright" rule.
* test-userspec.c: avoid compiler warningsJim Meyering2010-01-261-31/+36
| | | | | | * tests/test-userspec.c (main): Avoid shadowing ("uid"), and "initialization discards qualifiers..." warnings. Put the first "uid" in its own scope, and make char* members "const".
* userspec-tests: test the userspec moduleJim Meyering2010-01-221-0/+186
* tests/test-userspec.c: New file. * modules/userspec-tests: Likewise.