diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-12 04:43:23 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-12 04:43:23 (EST) |
commit | d6c3cf0a6d44a63adb7b124af566cef625448ec9 (patch) | |
tree | afdaf93299ac45a11d41f2c636bb23459c76d67f | |
parent | f0920f2896c409d519e51744a2e2618a99ec8b8c (diff) |
Of course, that should be !isatty().
git-svn-id: http://opkg.googlecode.com/svn/trunk@291 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r-- | libopkg/user.c | 2 |
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); |