r16274: Fix the smbclient prompting behaviour for both systems that have
authorJames Peach <jpeach@samba.org>
Thu, 15 Jun 2006 23:51:20 +0000 (23:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:17:30 +0000 (11:17 -0500)
commit06491a4cb12d8753c63525b3ba4d754d2ab1e822
tree305b4dbe67646ac5e09cfc599a66ea334acd69f9
parentae2fb4f1093e28e4656371b9bbeb229fd1ed1ada
r16274: Fix the smbclient prompting behaviour for both systems that have
libreadline and those that don't. We always use the built-in readline
replacement for non-interactive mode. Interactive prompts are always
emitted to stdout and non-interactive mode never prompts at all.

Introduce x_fdup to avoid spuriously closing stdout when a logfile is
specified on the command line and setup_logging is called a second time.
(This used to be commit 848ac756f651a4be231e5635580c0fd5f3d3fa0e)
source3/client/client.c
source3/client/smbctool.c
source3/lib/readline.c
source3/lib/xfile.c