From d6c3cf0a6d44a63adb7b124af566cef625448ec9 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Thu, 12 Nov 2009 04:43:23 -0500 Subject: Of course, that should be !isatty(). git-svn-id: http://opkg.googlecode.com/svn/trunk@291 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg') 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); -- cgit v0.9.1