From: graham.gower Date: Thu, 12 Nov 2009 09:43:23 +0000 (+0000) Subject: Of course, that should be !isatty(). X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=commitdiff_plain;h=d6c3cf0a6d44a63adb7b124af566cef625448ec9 Of course, that should be !isatty(). git-svn-id: http://opkg.googlecode.com/svn/trunk@291 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- 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);