diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pty/pty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 20b2cc09cd..4ba1cba621 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -144,7 +144,7 @@ chfunc(void *data, char *errbuf, size_t errbuf_len) dup2(slave,2); close(slave); #if defined(HAVE_SETEUID) || defined(HAVE_SETREUID) || defined(HAVE_SETRESUID) - seteuid(getuid()); + if (seteuid(getuid())) ERROR_EXIT("seteuid()"); #endif return rb_exec_async_signal_safe(carg->eargp, errbuf, sizeof(errbuf_len)); |