From 5eef2f78b06f5ec7999ac016fd5d0703cfc0f811 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 17 Nov 2019 20:11:56 +0100 Subject: [PATCH] LibC: isatty() should return 1 for success, 0 for error --- Libraries/LibC/unistd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibC/unistd.cpp b/Libraries/LibC/unistd.cpp index 8fe148cd21..79d10e6042 100644 --- a/Libraries/LibC/unistd.cpp +++ b/Libraries/LibC/unistd.cpp @@ -331,7 +331,7 @@ int rmdir(const char* pathname) int isatty(int fd) { struct termios dummy; - return tcgetattr(fd, &dummy); + return tcgetattr(fd, &dummy) == 0; } int getdtablesize()