Skip to content

Commit

Permalink
adapt configuration path
Browse files Browse the repository at this point in the history
  • Loading branch information
MalloZup committed Jul 2, 2020
1 parent b6324f1 commit 9cc0277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/hawk_chkpwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ sane_pam_service(const char *name)
if (!isalnum(*sp) && *sp != '_' && *sp != '-')
return 0;
}

snprintf(path, sizeof(path), "/etc/pam.d/%s", name);
// the conf location has changed, see https://en.opensuse.org/openSUSE:Packaging_UsrEtc#pam.2Fpam-config
snprintf(path, sizeof(path), "/usr/etc/pam.d/%s", name);
return access(path, R_OK) == 0;
}

Expand Down

0 comments on commit 9cc0277

Please sign in to comment.