summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2022-01-23 08:00:00 +0000
committerDmitry V. Levin <ldv@altlinux.org>2022-01-23 08:00:00 +0000
commitbf6db771b299535932ec7679a420aa9ad773a51c (patch)
treecb04139b2cae1caff512dc059b2fd2eb76e64b13
parent8595eacd9b5c0d8ce933e58bff95127159d5babd (diff)
downloadlinux-pam-git-ldv/SCONFIGDIR.tar.gz
pam_limits: use VENDOR_SCONFIGDIR macroldv/SCONFIGDIR
* modules/pam_limits/pam_limits.c (parse_config_file): Use VENDOR_SCONFIGDIR macro instead of VENDORDIR.
-rw-r--r--modules/pam_limits/pam_limits.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_limits/pam_limits.c b/modules/pam_limits/pam_limits.c
index 333a75ea..6fbe95fc 100644
--- a/modules/pam_limits/pam_limits.c
+++ b/modules/pam_limits/pam_limits.c
@@ -823,11 +823,11 @@ parse_config_file(pam_handle_t *pamh, const char *uname, uid_t uid, gid_t gid,
if (fil == NULL) {
int err = errno;
-#ifdef VENDORDIR
+#ifdef VENDOR_SCONFIGDIR
/* if the specified file does not exist, and it is not provided by
the user, try the vendor file as fallback. */
if (pl->conf_file == NULL && err == ENOENT)
- fil = fopen(VENDORDIR"/security/limits.conf", "r");
+ fil = fopen(VENDOR_SCONFIGDIR "/limits.conf", "r");
if (fil == NULL)
#endif