diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-01-24 16:15:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:26 -0500 |
commit | 70c589a8323637ff8e1f96a56f8acaf550a58dc4 (patch) | |
tree | 68500e179aa0bbe0ed5b13f5efc3865aaecd4663 /source/lib/util_sec.c | |
parent | 61841b225c2a09dcdb4b1242cb0ad0429ec1948e (diff) | |
download | samba-70c589a8323637ff8e1f96a56f8acaf550a58dc4.tar.gz samba-70c589a8323637ff8e1f96a56f8acaf550a58dc4.tar.xz samba-70c589a8323637ff8e1f96a56f8acaf550a58dc4.zip |
r21005: Add a debug message for EAGAIN error of setresuid.
Volker
Diffstat (limited to 'source/lib/util_sec.c')
-rw-r--r-- | source/lib/util_sec.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/lib/util_sec.c b/source/lib/util_sec.c index 3f8cb690cd0..3d997ee76ac 100644 --- a/source/lib/util_sec.c +++ b/source/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 |