>From 9a5db6c4e88b874db40e04bd531ca6575b16a7dd Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 12 Apr 2012 14:12:41 +0200 Subject: [PATCH] autofs: Raise the maximum key length to PATH_MAX --- src/sss_client/autofs/sss_autofs.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sss_client/autofs/sss_autofs.c b/src/sss_client/autofs/sss_autofs.c index e1810466bfdda417e04882b085f4e9315480c8ad..d9a85fc7557a0c6fd05e9cddfa082bb3ed1d6005 100644 --- a/src/sss_client/autofs/sss_autofs.c +++ b/src/sss_client/autofs/sss_autofs.c @@ -24,9 +24,11 @@ #include "sss_client/autofs/sss_autofs_private.h" #include "sss_client/sss_cli.h" -/* Historically, autofs map and key names were just file names */ +/* Historically, autofs map names were just file names. Indirect key names + * may be full directory paths + */ #define MAX_AUTOMNTMAPNAME_LEN NAME_MAX -#define MAX_AUTOMNTKEYNAME_LEN NAME_MAX +#define MAX_AUTOMNTKEYNAME_LEN PATH_MAX /* How many entries shall _sss_getautomntent_r retreive at once */ #define GETAUTOMNTENT_MAX_ENTRIES 512 -- 1.7.7.6