From bf6db771b299535932ec7679a420aa9ad773a51c Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 23 Jan 2022 08:00:00 +0000 Subject: pam_limits: use VENDOR_SCONFIGDIR macro * modules/pam_limits/pam_limits.c (parse_config_file): Use VENDOR_SCONFIGDIR macro instead of VENDORDIR. --- modules/pam_limits/pam_limits.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/pam_limits') 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 -- cgit v1.2.1