summaryrefslogtreecommitdiff
path: root/modules/pam_limits
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pam_limits')
-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