mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
r21005: Add a debug message for EAGAIN error of setresuid.
Volker
(This used to be commit 70c589a832
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
3f70efd4f9
commit
a24714b9fd
@ -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
|
||||
|
Reference in New Issue
Block a user