diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_sec.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/lib/util_sec.c b/source3/lib/util_sec.c index 3f8cb690cd..3d997ee76a 100644 --- a/source3/lib/util_sec.c +++ b/source3/lib/util_sec.c @@ -198,7 +198,13 @@ void set_effective_uid(uid_t uid) { #if USE_SETRESUID /* Set the effective as well as the real uid. */ - setresuid(uid,uid,-1); + if (setresuid(uid,uid,-1) == -1) { + if (errno == EAGAIN) { + DEBUG(0, ("setresuid failed with EAGAIN. uid(%d) " + "might be over its NPROC limit\n", + (int)uid)); + } + } #endif #if USE_SETREUID |