From d6c3cf0a6d44a63adb7b124af566cef625448ec9 Mon Sep 17 00:00:00 2001 From: "graham.gower" Date: Thu, 12 Nov 2009 09:43:23 +0000 Subject: [PATCH] Of course, that should be !isatty(). git-svn-id: http://opkg.googlecode.com/svn/trunk@291 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- libopkg/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libopkg/user.c b/libopkg/user.c index dda5013..26f6f0e 100644 --- a/libopkg/user.c +++ b/libopkg/user.c @@ -30,7 +30,7 @@ char *get_user_response(const char *format, ...) vprintf(format, ap); va_end(ap); - if (isatty(fileno(stdin))) + if (!isatty(fileno(stdin))) return NULL; response = (char *)file_read_line_alloc(stdin); -- 2.25.1