summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-08 01:00:55 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-08 01:00:55 +0000
commit99f9caebe4989df40bbb82b5bc0beb4b84f11f8c (patch)
tree894b0b82bb9ee1c6fcc9b97c6d59b6483138759f
parent315e4f513be2c2f6bf492ebc49d384957fb70f88 (diff)
downloadsamba-99f9caebe4989df40bbb82b5bc0beb4b84f11f8c.tar.gz
samba-99f9caebe4989df40bbb82b5bc0beb4b84f11f8c.tar.bz2
samba-99f9caebe4989df40bbb82b5bc0beb4b84f11f8c.zip
One more fix for the difference between FILE and X_FILE.
(This used to be commit 7e56014b2877cde489913310edbfd16c267d9859)
-rw-r--r--source3/lib/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/readline.c b/source3/lib/readline.c
index c0ccf44715..8b90c32c7f 100644
--- a/source3/lib/readline.c
+++ b/source3/lib/readline.c
@@ -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