Submitted by Gleb.
read_userconfig() is called from get_userconfig() with non-NULL argument, so the check is always false. Drop the _PATH_PW_CONF definition as well.
Differential D17575
pw: file == NULL check in read_userconfig() is always false yuripv on Oct 15 2018, 8:45 PM. Authored by Tags None Referenced Files
Details Submitted by Gleb. read_userconfig() is called from get_userconfig() with non-NULL argument, so the check is always false. Drop the _PATH_PW_CONF definition as well.
Diff Detail
Event TimelineComment Actions Looks good. While you are here, please also replace last "/etc" literal in the pw.c's main() function with _PATH_PWD used with all other places of pw(1) sources. |