merge from HEAD - x_fileno, not fileno on an XFILE
authorAndrew Bartlett <abartlet@samba.org>
Sat, 8 Feb 2003 01:01:49 +0000 (01:01 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 8 Feb 2003 01:01:49 +0000 (01:01 +0000)
(This used to be commit e3468d8edc77c4d3dffc81770f4bc991e5a5fe52)

source3/lib/readline.c

index c0ccf44715da51a1a64625d09bf826302be6bb22..8b90c32c7f9f1066c388f2c3bef10248b5b5baab 100644 (file)
@@ -86,7 +86,7 @@ char *smb_readline(char *prompt, void (*callback)(void),
                   char **(completion_fn)(char *text, int start, int end))
 {
 #if HAVE_LIBREADLINE
-       if (isatty(fileno(x_stdin))) {
+       if (isatty(x_fileno(x_stdin))) {
                char *ret;
 
                /* Aargh!  Readline does bizzare things with the terminal width