shadow/lib
Alejandro Colomar 5c86700fd7 lib/utmp.c: Don't check for NULL before free(3)
free(NULL) is valid; there's no need to check for NULL.  Simplify.

Fixes: 5178f8c5af ("utmp: call prepare_utmp() even if utent is NULL")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-10-29 21:12:02 -05:00
..
.indent.pro [svn-upgrade] Integrating new upstream version, shadow (4.0.8) 2007-10-07 11:46:07 +00:00
Makefile.am lib/sprintf.[ch]: Add x[v]asprintf() 2023-10-20 21:05:33 +02:00
addgrps.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
age.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
agetpass.c lib/agetpass.h: Move prototypes to dedicated header 2023-09-04 08:57:18 -05:00
agetpass.h lib/agetpass.h: Move prototypes to dedicated header 2023-09-04 08:57:18 -05:00
alloc.c lib, libmisc: Move source files to lib (where their headers were) 2023-08-30 17:22:38 +02:00
alloc.h Simplify allocation APIs 2023-06-08 09:05:39 -05:00
audit_help.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
basename.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
bit.c lib, libmisc: Move source files to lib (where their headers were) 2023-08-30 17:22:38 +02:00
bit.h lib: bit_ceil_wrapul(): stop recursion 2023-02-24 12:44:14 -06:00
btrfs.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
chkname.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
chkname.h lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
chowndir.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
chowntty.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
cleanup.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
cleanup_group.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
cleanup_user.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
commonio.c lib/, src/: Use asprintf(3) instead of strlen(3)+malloc(3)+snprintf(3) 2023-10-20 21:05:33 +02:00
commonio.h changing lock mechanism 2022-12-29 13:58:49 -06:00
console.c Use STRLCPY() instead of its pattern 2023-09-01 09:39:23 +02:00
copydir.c libmisc/copydir: do not forget errors from directory copy 2023-10-21 21:37:38 -05:00
csrand.c sizeof.h: Move sizeof()-related macros to their own header 2023-09-01 09:39:23 +02:00
date_to_str.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
defines.h defines.h: Remove definition of STRFCPY() 2023-09-01 09:39:23 +02:00
encrypt.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
entry.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
env.c lib/, src/: Use xasprintf() instead of its pattern 2023-10-20 21:05:33 +02:00
exitcodes.h Update licensing info 2021-12-23 19:36:50 -06:00
faillog.h Update licensing info 2021-12-23 19:36:50 -06:00
failure.c memzero.h: Move memzero() and strzero() to their own header 2023-09-01 09:39:23 +02:00
failure.h lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
fields.c Overhaul valid_field() 2023-03-31 09:53:40 -05:00
find_new_gid.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
find_new_sub_gids.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
find_new_sub_uids.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
find_new_uid.c Use CALLOC() instead of its pattern 2023-09-01 09:39:23 +02:00
fputsx.c Update licensing info 2021-12-23 19:36:50 -06:00
freezero.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
freezero.h lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
get_gid.c Remove superfluous casts 2023-02-09 10:03:03 -06:00
get_pid.c get_pid.c: Use tighter validation checks 2023-05-15 09:21:16 +02:00
get_uid.c Remove superfluous casts 2023-02-09 10:03:03 -06:00
getdate.h lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
getdate.y lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
getdef.c Improve the login.defs unknown item error message 2023-10-20 18:46:23 -05:00
getdef.h Improve the login.defs unknown item error message 2023-10-20 18:46:23 -05:00
getgr_nam_gid.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
getlong.c Update licensing info 2021-12-23 19:36:50 -06:00
getrange.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
gettime.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
getulong.c Update licensing info 2021-12-23 19:36:50 -06:00
groupio.c lib/, src/: Use asprintf(3) instead of strlen(3)+malloc(3)+snprintf(3) 2023-10-20 21:05:33 +02:00
groupio.h Update licensing info 2021-12-23 19:36:50 -06:00
groupmem.c Use CALLOC() instead of its pattern 2023-09-01 09:39:23 +02:00
gshadow.c Simplify allocation APIs 2023-06-08 09:05:39 -05:00
gshadow_.h Update licensing info 2021-12-23 19:36:50 -06:00
hushed.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
idmapping.c Use bzero(3) instead of its pattern 2023-09-01 09:39:23 +02:00
idmapping.h lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
isexpired.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
limits.c Use MEMZERO() instead of its pattern 2023-09-01 09:39:23 +02:00
list.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
lockpw.c Don't redefine errno(3) 2022-12-22 11:43:29 +01:00
log.c memzero.h: Move memzero() and strzero() to their own header 2023-09-01 09:39:23 +02:00
logind.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
loginprompt.c Use MEMZERO() instead of its pattern 2023-09-01 09:39:23 +02:00
mail.c lib/, src/: Use xasprintf() instead of its pattern 2023-10-20 21:05:33 +02:00
memzero.c memzero.[ch]: Define memzero() and strzero() as inline functions 2023-09-01 09:39:23 +02:00
memzero.h Use bzero(3) instead of its pattern 2023-09-01 09:39:23 +02:00
motd.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
must_be.h must_be.h: Add must_be_array() macro 2023-09-01 09:39:23 +02:00
myname.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
nscd.c Don't redefine errno(3) 2022-12-22 11:43:29 +01:00
nscd.h * configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd flag to 2008-08-30 18:30:36 +00:00
nss.c lib/: Add missing #include <config.h> 2023-10-20 21:05:33 +02:00
obscure.c memzero.h: Move memzero() and strzero() to their own header 2023-09-01 09:39:23 +02:00
pam_defs.h Declare constant data structure const 2023-01-25 12:31:17 +01:00
pam_pass.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
pam_pass_non_interactive.c Use bzero(3) instead of its pattern 2023-09-01 09:39:23 +02:00
port.c Second verse, it gets worse; it gets no better than this 2023-05-31 09:29:49 -05:00
port.h Update licensing info 2021-12-23 19:36:50 -06:00
prefix_flag.c lib/, src/: Use xasprintf() instead of its pattern 2023-10-20 21:05:33 +02:00
prototypes.h lib/agetpass.h: Move prototypes to dedicated header 2023-09-04 08:57:18 -05:00
pwauth.c lib/pwauth.c: Replace getpass(3) by agetpass() 2023-09-04 08:57:18 -05:00
pwauth.h Add header guards 2022-05-24 07:49:11 -05:00
pwd2spwd.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
pwd_init.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
pwdcheck.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
pwio.c lib: avoid dropping const qualifier during cast 2023-08-21 13:54:27 -05:00
pwio.h Update licensing info 2021-12-23 19:36:50 -06:00
pwmem.c memzero.h: Move memzero() and strzero() to their own header 2023-09-01 09:39:23 +02:00
readpassphrase.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
readpassphrase.h lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
remove_tree.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
rlogin.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
root_flag.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
run_part.c lib/: Add missing #include <config.h> 2023-10-20 21:05:33 +02:00
run_part.h Add header guards 2022-05-24 07:49:11 -05:00
salt.c Use bzero(3) instead of its pattern 2023-09-01 09:39:23 +02:00
selinux.c selinux: use type safe function pointer assignment 2023-03-20 08:47:52 +01:00
semanage.c semanage: disconnect to free libsemanage internals 2023-04-26 17:52:54 -05:00
setugid.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
setupenv.c lib/, src/: Use xasprintf() instead of its pattern 2023-10-20 21:05:33 +02:00
sgetgrent.c Simplify allocation APIs 2023-06-08 09:05:39 -05:00
sgetpwent.c Raise limit for passwd and shadow entry length 2022-10-14 10:41:40 +02:00
sgetspent.c Don't redefine errno(3) 2022-12-22 11:43:29 +01:00
sgroupio.c memzero.h: Move memzero() and strzero() to their own header 2023-09-01 09:39:23 +02:00
sgroupio.h Update licensing info 2021-12-23 19:36:50 -06:00
shadow.c Remove superfluous casts 2023-02-09 10:03:03 -06:00
shadowio.c Remove superfluous casts 2023-02-09 10:03:03 -06:00
shadowio.h Update licensing info 2021-12-23 19:36:50 -06:00
shadowlog.c lib: provide default values for shadow_progname/shadow_logfd 2021-12-27 16:28:23 +00:00
shadowlog.h Drop obsolete prototype for log_dolog() 2022-08-06 11:27:56 -05:00
shadowlog_internal.h Fix typos 2023-01-26 22:44:39 -06:00
shadowmem.c memzero.h: Move memzero() and strzero() to their own header 2023-09-01 09:39:23 +02:00
shell.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
sizeof.h sizeof.h: Add SIZEOF_ARRAY() macro 2023-09-01 09:39:23 +02:00
spawn.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
sprintf.c lib/sprintf.[ch]: Add x[v]asprintf() 2023-10-20 21:05:33 +02:00
sprintf.h lib/sprintf.[ch]: Add x[v]asprintf() 2023-10-20 21:05:33 +02:00
sssd.c Simplify allocation APIs 2023-06-08 09:05:39 -05:00
sssd.h Flush sssd caches in addition to nscd caches 2018-09-13 14:20:02 +02:00
stpecpy.c lib, libmisc: Move source files to lib (where their headers were) 2023-08-30 17:22:38 +02:00
stpecpy.h lib/mempcpy.[ch]: Remove our definition of mempcpy(3) 2023-09-04 08:57:43 -05:00
stpeprintf.c lib, libmisc: Move source files to lib (where their headers were) 2023-08-30 17:22:38 +02:00
stpeprintf.h Add stpeprintf() 2023-02-16 11:29:33 +01:00
strlcpy.c strlcpy.[ch]: Add strlcpy_() 2023-09-01 09:39:23 +02:00
strlcpy.h strlcpy.[ch]: Add strlcpy_() 2023-09-01 09:39:23 +02:00
strtoday.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
sub.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
subordinateio.c Avoid usage of sprintf 2023-08-21 16:04:09 -05:00
subordinateio.h fix newusers when nss provides subids 2021-05-23 08:16:16 -05:00
sulog.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
tcbfuncs.c lib/tcbfuncs: operate on file descriptor rather than path 2023-08-21 11:29:17 +02:00
tcbfuncs.h * lib/tcbfuncs.h: Re-indent. 2010-03-18 19:23:00 +00:00
ttytype.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
tz.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
ulimit.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
user_busy.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
utmp.c lib/utmp.c: Don't check for NULL before free(3) 2023-10-29 21:12:02 -05:00
valid.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
write_full.c libmisc/write_full.c: Improve write_full() 2023-08-18 20:35:15 -05:00
xgetXXbyYY.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
xgetgrgid.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
xgetgrnam.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
xgetpwnam.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
xgetpwuid.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
xgetspnam.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
xprefix_getpwnam.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
yesno.c lib: Merge libmisc into libshadow 2023-08-31 08:55:26 +02:00
zustr2stp.c zustr2stp.[ch]: Add zustr2stp() 2023-09-01 09:39:23 +02:00
zustr2stp.h lib/mempcpy.[ch]: Remove our definition of mempcpy(3) 2023-09-04 08:57:43 -05:00