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)
commit848ac756f651a4be231e5635580c0fd5f3d3fa0e
tree4a3b5fa18b387f0372ff8ba549a0e7f9778767b8
parentdff1eba81ed4bdd6dbf2df6e7c28b0da74a39615
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.
source/client/client.c
source/client/smbctool.c
source/lib/readline.c
source/lib/xfile.c