Of course, that should be !isatty().
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Thu, 12 Nov 2009 09:43:23 +0000 (09:43 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Thu, 12 Nov 2009 09:43:23 +0000 (09:43 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@291 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

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);