Go to file
Alejandro Colomar 8f134c0bea Use isdigit(3) instead of a reimplementation of it
C89 defined isdigit as a function that tests for any decimal-digit
character, defining the decimal digits as 0 1 2 3 4 5 6 7 8 9.

I don't own a copy of C89 to check, but check in C17:

7.4.1.5
5.2.1

More specifically:

> In both the source and execution basic character sets, the value
> of each character after 0 in the above list of decimal digits
> shall be one greater than the value of the previous.

And since in ascii(7), the character after '9' is ':', it's highly
unlikely that any implementation will ever accept any
_decimal digit_ other than 0..9.

POSIX simply defers to the ISO C standard.

This is exactly what we wanted from ISDIGIT(c), so just use it.
Non-standard implementations might have been slower or considered
other characters as digits in the past, but let's assume
implementations available today conform to ISO C89.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2021-12-29 02:41:09 +01:00
.builds add alpine edge CI build 2021-12-27 15:47:26 -06:00
contrib fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
doc README: update content and format 2021-11-22 15:31:54 +01:00
docs fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
etc fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
lib Remove definition of ISDIGIT_LOCALE(c) 2021-12-29 02:41:09 +01:00
libmisc Use isdigit(3) instead of a reimplementation of it 2021-12-29 02:41:09 +01:00
libsubid libsubid: use log_set_progname in subid_init 2021-12-27 16:28:23 +00:00
man Adding new option -rG to usermod 2021-12-13 21:42:48 -08:00
po Have a single definition of date_to_str() 2021-12-26 18:55:39 +01:00
src Merge pull request #479 from alejandro-colomar/getgroups 2021-12-27 19:12:24 -06:00
tests nss test_range: make sure /etc/nsswitch.conf and /etc/subuid exists 2021-12-27 15:47:29 -06:00
.gitignore Show libsubid api version in subid.h 2021-12-05 08:02:57 -06:00
.travis.yml subids: support nsswitch 2021-04-16 21:02:37 -05:00
acinclude.m4 [svn-upgrade] Integrating new upstream version, shadow (4.0.13) 2007-10-07 11:47:01 +00:00
AUTHORS.md Adding new option -rG to usermod 2021-12-13 21:42:48 -08:00
autogen.sh undo accidental autogen.sh commit: enable-shared 2021-11-27 14:56:03 -06:00
ChangeLog configure.ac and changelog: release 4.9 2021-12-19 14:09:08 -06:00
configure.ac Assume STDC_HEADERS will always be defined 2021-12-29 02:39:04 +01:00
COPYING fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
Makefile.am fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
NEWS fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
README Add README as symlink to README.md 2021-12-19 14:09:08 -06:00
README.md README: update content and format 2021-11-22 15:31:54 +01:00
SECURITY.md Add Christian Brauner to SECURITY.md 2021-10-25 14:26:37 -05:00
shadow.spec.in * shadow.spec.in: Fix the source (new FTP). 2008-08-31 17:30:45 +00:00
TODO fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00

shadow-utils

Introduction

The shadow-utils package includes the necessary programs for converting UNIX password files to the shadow password format, plus programs for managing user and group accounts. The pwconv command converts passwords to the shadow password format. The pwunconv command unconverts shadow passwords and generates a passwd file (a standard UNIX password file). The pwck command checks the integrity of password and shadow files. The lastlog command prints out the last login times for all users. The useradd, userdel, and usermod commands are used for managing user accounts. The groupadd, groupdel, and groupmod commands are used for managing group accounts.

Sites

Contacts

There are several ways to contact us:

Mailing archives

Authors and maintainers

Authors and maintainers are listed in AUTHORS.md.