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 dda5013..26f6f0e 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);