Skip to content

Commit 86d58bf

Browse files
committed
avoid spurious error when looking up UIDs not in winbindd's idmap range
i'm not 100% sure that's what is causing the problem, but it seems fairly innocuous to suppress this error only for getpwuid lookups https://forums.proftpd.org/smf/index.php/topic,5630.0/all.html
1 parent 1c52c30 commit 86d58bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mod_winbind.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ handle_winbind_uid_name(cmd_rec *cmd)
313313

314314
ret = wbcGetpwuid(*((uid_t *) cmd->argv[0]), &pw);
315315
if (!WBC_ERROR_IS_OK(ret)) {
316-
if (ret != WBC_ERR_UNKNOWN_USER) {
316+
if ((ret != WBC_ERR_UNKNOWN_USER) && (ret != WBC_ERR_DOMAIN_NOT_FOUND)) {
317317
pr_log_pri(PR_LOG_ERR,
318318
MOD_WINBIND_VERSION ": unable to look up user with UID %u: %s",
319319
*((unsigned *) cmd->argv[0]), wbcErrorString(ret));

0 commit comments

Comments
 (0)