Page MenuHomeFreeBSD

pw: file == NULL check in read_userconfig() is always false
ClosedPublic

Authored by yuripv on Oct 15 2018, 8:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 31 2025, 12:38 AM
Unknown Object (File)
Jan 30 2025, 1:06 AM
Unknown Object (File)
Jan 19 2025, 3:41 PM
Unknown Object (File)
Jan 18 2025, 1:02 PM
Unknown Object (File)
Jan 18 2025, 10:27 AM
Unknown Object (File)
Jan 8 2025, 8:39 PM
Unknown Object (File)
Jan 5 2025, 9:53 AM
Unknown Object (File)
Dec 23 2024, 9:45 AM
Subscribers

Details

Summary

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

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.

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.

Makes sense.

This revision is now accepted and ready to land.Oct 16 2018, 11:04 AM
This revision was automatically updated to reflect the committed changes.