diff options
Diffstat (limited to 'libgloss/riscv/sys_isatty.c')
-rw-r--r-- | libgloss/riscv/sys_isatty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgloss/riscv/sys_isatty.c b/libgloss/riscv/sys_isatty.c index 0dc3db169..8857f4828 100644 --- a/libgloss/riscv/sys_isatty.c +++ b/libgloss/riscv/sys_isatty.c @@ -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); } |