diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2018-12-20 13:59:25 +0100 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2018-12-20 13:59:25 +0100 |
commit | d57ab22133654033ee1da89f128a81572d320985 (patch) | |
tree | 08f3d7e4e9619693bc8383c54821f02cea311f83 /modules/pam_rhosts | |
parent | 1daa323234982df4d7bbb8a13d4eb447106657d1 (diff) | |
download | pam-d57ab22133654033ee1da89f128a81572d320985.tar.gz pam-d57ab22133654033ee1da89f128a81572d320985.tar.bz2 pam-d57ab22133654033ee1da89f128a81572d320985.zip |
pam_motd: Cleanup the code and avoid unnecessary logging
The pam_motd module will not log if the default motd.d directories
are missing.
Also cleanup some code cleanliness issues and fix compilation
warnings.
* modules/pam_motd/pam_motd.c: Constification of constant strings.
(try_to_display_directory): Removed unused function.
(pam_split_string): Replace uint with unsigned int. Fix warnings.
(compare_strings): Fix warnings by proper constification.
(try_to_display_directories_with_overrides): Cleanups. Switch
off the logging if the motd.d directories are missing and they
are default ones.
(pam_sm_open_session): Cleanup warnings. Pass the information
to try_to_display_directories_with_overrides() that non-default
motd options are used.
Diffstat (limited to 'modules/pam_rhosts')
0 files changed, 0 insertions, 0 deletions