syscalls: isatty: act more like mlibc expects

This commit is contained in:
Matheus
2022-09-21 16:32:44 -03:00
parent 0b27133826
commit ec67d3fe27
+1 -2
View File
@@ -24,8 +24,7 @@ syscallret syscall_isatty(int ifd){
ret = vfs_isatty(fd->node);
retv.errno = ret;
retv.ret = retv.errno == ENOTTY ? 0 : 1;
// don't care about return value
fd_release(fd);