RISC-V: isatty: return 0 on error
This commit is contained in:
parent
cba678ba02
commit
f2c9e55faf
|
@ -13,5 +13,5 @@ _isatty(int file)
|
|||
{
|
||||
struct stat s;
|
||||
int ret = _fstat (file, &s);
|
||||
return ret == -1 ? -1 : !!(s.st_mode & S_IFCHR);
|
||||
return ret == -1 ? 0 : !!(s.st_mode & S_IFCHR);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue