mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
pty.c: typo
* ext/pty/pty.c (chfunc): fix a typo of an operator. pointed out by jaruga (Jun Aruga) at [ruby-core:89058]. [Bug #15116] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
aefdd4e25f
commit
742df62eb7
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ chfunc(void *data, char *errbuf, size_t errbuf_len)
|
|||
dup2(slave,0);
|
||||
dup2(slave,1);
|
||||
dup2(slave,2);
|
||||
if (slave < 0 && slave > 2) (void)!close(slave);
|
||||
if (slave < 0 || slave > 2) (void)!close(slave);
|
||||
#if defined(HAVE_SETEUID) || defined(HAVE_SETREUID) || defined(HAVE_SETRESUID)
|
||||
if (seteuid(getuid())) ERROR_EXIT("seteuid()");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue