Of course, that should be !isatty().
[oweals/opkg-lede.git] / libopkg / user.c
index dda5013f6338c6fec4940b1b3b0fa7296607603d..26f6f0eaaf1a07080c1622ccdda73c0ca5915312 100644 (file)
@@ -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);