summaryrefslogtreecommitdiffstats
path: root/src/sss_client
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2013-09-12 19:45:39 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-13 17:33:31 +0200
commitbef7e40a7f8d595100a69e774051ac527a32533a (patch)
treeba1733e780901e612e0eb3232dfc9f079af6835a /src/sss_client
parent10bc88ac09ada43256119b8e0654458830f88156 (diff)
downloadsssd-bef7e40a7f8d595100a69e774051ac527a32533a.tar.gz
sssd-bef7e40a7f8d595100a69e774051ac527a32533a.tar.xz
sssd-bef7e40a7f8d595100a69e774051ac527a32533a.zip
Rename _SSS_MC_SPECIAL
If the environment variable _SSS_MC_SPECIAL is set to "NO", the mmap cache is skipped in the client code. The name is not very descriptive. This patch renames the variable to SSS_NSS_USE_MEMCACHE.
Diffstat (limited to 'src/sss_client')
-rw-r--r--src/sss_client/nss_mc_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sss_client/nss_mc_common.c b/src/sss_client/nss_mc_common.c
index 5d36c47ad..a0a70abc0 100644
--- a/src/sss_client/nss_mc_common.c
+++ b/src/sss_client/nss_mc_common.c
@@ -108,8 +108,8 @@ errno_t sss_nss_mc_get_ctx(const char *name, struct sss_cli_mc_ctx *ctx)
char *envval;
int ret;
- envval = getenv("_SSS_MC_SPECIAL");
- if (envval && strcmp(envval, "NO") == 0) {
+ envval = getenv("SSS_NSS_USE_MEMCACHE");
+ if (envval && strcasecmp(envval, "NO") == 0) {
return EPERM;
}