summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libopkg/user.c2
1 files changed, 1 insertions, 1 deletions
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);