From 2ded63a0e6748018dada646691843462797cc7fc Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 2 May 2021 18:14:59 +0200 Subject: Update package to 1.1.0-cl3u3 --- map_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'map_common.c') diff --git a/map_common.c b/map_common.c index 2f73a97..b6fe3bc 100644 --- a/map_common.c +++ b/map_common.c @@ -141,15 +141,15 @@ int nss_mapuser_config(int *errnop, const char *lname) } else if (!strncmp(lbuf, "mapped_priv_user=", 17)) { /* the user we are mapping to */ mapped_priv_user = strdup(lbuf + 17); - } else if (!strncmp(lbuf, "map_min_uid=", 12)) { + } else if (!strncmp(lbuf, "map_min_uid=", 8)) { /* * Don't lookup uids that are local, typically set to either * 0 or smallest always local user's uid */ unsigned long uid; char *valid; - uid = strtoul(lbuf + 12, &valid, 0); - if (valid > (lbuf + 12)) + uid = strtoul(lbuf + 8, &valid, 0); + if (valid > (lbuf + 8)) map_min_uid = (uid_t) uid; } else if (map_debug) /* ignore unrecognized lines, unless map_debug on */ syslog(LOG_WARNING, "%s: unrecognized parameter: %s", -- cgit v1.2.3