diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-04-12 14:12:41 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-04-18 10:23:56 -0400 |
commit | ac67129265297ad55cb36a6749a8e79370986183 (patch) | |
tree | a845930052c05ba01b65b846f8d8d7ed888747ae /src/sss_client/autofs | |
parent | 82b5429d1438392c45e70a0f84dd4d0f5fa1a171 (diff) | |
download | sssd-ac67129265297ad55cb36a6749a8e79370986183.tar.gz sssd-ac67129265297ad55cb36a6749a8e79370986183.tar.bz2 sssd-ac67129265297ad55cb36a6749a8e79370986183.zip |
autofs: Raise the maximum key length to PATH_MAX
https://fedorahosted.org/sssd/ticket/1300
Diffstat (limited to 'src/sss_client/autofs')
-rw-r--r-- | 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 e1810466..0125e6ee 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. Direct 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 |