Go to file
Alejandro Colomar 355ad6a9e0 Have a single definition of date_to_str()
PARAMETERS:

According to the C2x charter, I reordered the parameters 'size'
and 'buf' from previously existing date_to_str() definitions.

C2x charter:
> 15. Application Programming Interfaces (APIs) should be
> self-documenting when possible.  In particular, the order of
> parameters in function declarations should be arranged such that
> the size of an array appears before the array.  The purpose is to
> allow Variable-Length Array (VLA) notation to be used.  This not
> only makes the code's purpose clearer to human readers, but also
> makes static analysis easier.  Any new APIs added to the Standard
> should take this into consideration.

I used 'long' for the date parameter, as some uses of the function
need to pass a negative value meaning "never".

FUNCTION BODY:

I didn't check '#ifdef HAVE_STRFTIME', which old definitions did,
since strftime(3) is guaranteed by the C89 standard, and all of
the conversion specifiers that we use are also specified by that
standard, so we don't need any extensions at all.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
2021-12-26 18:55:39 +01:00
.github/workflows initial github actions attempt 2021-10-15 16:21:19 -05: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 Have a single definition of date_to_str() 2021-12-26 18:55:39 +01:00
libmisc Have a single definition of date_to_str() 2021-12-26 18:55:39 +01:00
libsubid libsubid: fix defining SONAME version 2021-12-20 01:37:42 +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 Have a single definition of date_to_str() 2021-12-26 18:55:39 +01:00
tests fixed typo in login.defs 2021-12-06 01:41:17 +09: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 libsubid: fix defining SONAME version 2021-12-20 01:37:42 +00: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.