]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/, src/: Always pass NULL to time(2)
authorAlejandro Colomar <alx@kernel.org>
Tue, 14 May 2024 17:58:36 +0000 (19:58 +0200)
committerSerge Hallyn <serge@hallyn.com>
Tue, 2 Jul 2024 02:40:11 +0000 (21:40 -0500)
commitbfb6aad7cbd4391442ae5ec8a27cbdda155033bb
tree25a4086c0c0b58237849ebbea6ff01dbf7328b87
parent761eb0701666df9ecd8d9f03105a776957b3dd2f
lib/, src/: Always pass NULL to time(2)

See time(2):

BUGS
     Error returns from this system  call  are  indistinguishable  from
     successful  reports  that  the  time  is  a few seconds before the
     Epoch, so the C library wrapper function never sets errno as a re‐
     sult of this call.

     The tloc argument is obsolescent and should always be NULL in  new
     code.  When tloc is NULL, the call cannot fail.

Fixes: 45c6603cc86c ("[svn-upgrade] Integrating new upstream version, shadow (19990709)")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/failure.c
lib/log.c
lib/sulog.c
src/faillog.c
src/logoutd.c