diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2022-01-23 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2022-01-23 08:00:00 +0000 |
commit | bf6db771b299535932ec7679a420aa9ad773a51c (patch) | |
tree | cb04139b2cae1caff512dc059b2fd2eb76e64b13 /modules/pam_limits | |
parent | 8595eacd9b5c0d8ce933e58bff95127159d5babd (diff) | |
download | pam-bf6db771b299535932ec7679a420aa9ad773a51c.tar.gz pam-bf6db771b299535932ec7679a420aa9ad773a51c.tar.bz2 pam-bf6db771b299535932ec7679a420aa9ad773a51c.zip |
pam_limits: use VENDOR_SCONFIGDIR macro
* modules/pam_limits/pam_limits.c (parse_config_file): Use
VENDOR_SCONFIGDIR macro instead of VENDORDIR.
Diffstat (limited to 'modules/pam_limits')
-rw-r--r-- | modules/pam_limits/pam_limits.c | 4 |
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 |