aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_unix
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-08-25 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-08-25 08:00:00 +0000
commitaca37d3400e31ef01f3f79b64dd8660d872aaf8f (patch)
tree983f552d65ea84aac1c2e9de1617c6bfb4673897 /modules/pam_unix
parentd2536800c523e8e1df140084d6b938b7bbf77dc3 (diff)
downloadpam-aca37d3400e31ef01f3f79b64dd8660d872aaf8f.tar.gz
pam-aca37d3400e31ef01f3f79b64dd8660d872aaf8f.tar.bz2
pam-aca37d3400e31ef01f3f79b64dd8660d872aaf8f.zip
build: rename SCONFIGDIR config.h macro to SCONFIG_DIR
This way it is visibly different from the configure variable SCONFIGDIR, which is helpful, because their values are slightly different: the macro is quoted while the configure variable is not quoted, and this difference may cause problems with other build systems.
Diffstat (limited to 'modules/pam_unix')
-rw-r--r--modules/pam_unix/passverify.c2
-rw-r--r--modules/pam_unix/passverify.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_unix/passverify.c b/modules/pam_unix/passverify.c
index 624ba783..e8d0b91d 100644
--- a/modules/pam_unix/passverify.c
+++ b/modules/pam_unix/passverify.c
@@ -364,7 +364,7 @@ PAMH_ARG_DECL(int check_shadow_expiry,
#define PW_TMPFILE "/etc/npasswd"
#define SH_TMPFILE "/etc/nshadow"
-#define OPW_TMPFILE SCONFIGDIR "/nopasswd"
+#define OPW_TMPFILE SCONFIG_DIR "/nopasswd"
/*
* i64c - convert an integer to a radix 64 character
diff --git a/modules/pam_unix/passverify.h b/modules/pam_unix/passverify.h
index c4c8df5f..1636791c 100644
--- a/modules/pam_unix/passverify.h
+++ b/modules/pam_unix/passverify.h
@@ -9,7 +9,7 @@
#define PAM_UNIX_RUN_HELPER PAM_CRED_INSUFFICIENT
-#define OLD_PASSWORDS_FILE SCONFIGDIR "/opasswd"
+#define OLD_PASSWORDS_FILE SCONFIG_DIR "/opasswd"
int
is_pwd_shadowed(const struct passwd *pwd);