linux-pam/xtests/tst-pam_motd4.pamd
Robert Fairley 8eaf5570cf pam_motd: Fix segmentation fault when no motd_dir specified (#76)
This fixes a regression introduced by #69, where motd_path was set
to NULL and passed into strdup() if the motd_dir argument was
not specified in the configuration file. This caused a segmentation
fault.

* modules/pam_motd/pam_motd.c: fix checks for NULL in arguments
* xtests/Makefile.am: add test scripts and config file
* xtests/tst-pam_motd.sh: add running tst-pam_motd4.sh
* xtests/tst-pam_motd4.pamd: create
* xtests/tst-pam_motd4.sh: create
2018-11-21 08:46:02 +01:00

4 lines
112 B
Plaintext

#%PAM-1.0
session required pam_permit.so
session optional pam_motd.so motd=tst-pam_motd4.d/etc/motd