umm, it's usually a good idea to test before committing.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@601 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
7ca68ffaec
commit
56adeeabf3
|
@ -378,14 +378,13 @@ openpam_load_chain(pam_handle_t *pamh,
|
|||
char filename[PATH_MAX];
|
||||
size_t len;
|
||||
openpam_style_t style;
|
||||
FILE *f;
|
||||
int ret, serrno;
|
||||
int ret;
|
||||
|
||||
ENTERS(facility < 0 ? "any" : pam_facility_name[facility]);
|
||||
|
||||
/* either absolute or relative to cwd */
|
||||
if (strchr(service, '/') != NULL) {
|
||||
if (p = strrchr(service, '.') && strcmp(p, ".conf") == 0)
|
||||
if ((p = strrchr(service, '.')) != NULL && strcmp(p, ".conf") == 0)
|
||||
style = pam_conf_style;
|
||||
else
|
||||
style = pam_d_style;
|
||||
|
|
Loading…
Reference in New Issue