Code

sysdb: Use non-callback readline mode when non-interactive.
authorSebastian Harl <sh@tokkee.org>
Sat, 19 Jul 2014 12:06:33 +0000 (14:06 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 19 Jul 2014 12:06:33 +0000 (14:06 +0200)
commit498c6c0d39c932b38a6ba1641119c0b5f97d1399
tree2c8ca5d77f47e7cfe03505b3439b9c865354f25d
parent52fd6fa603286c39f3b4e8b5e3f28b13d5265949
sysdb: Use non-callback readline mode when non-interactive.

libedit's implementation of the callback-mode does not play well in
non-interactive mode (e.g. it does not correctly detect EOF) but works fine
when using readline().

Also, there's no need for the somewhat more complex callback mode in
non-interactive operation anyway.
src/tools/sysdb/input.c
src/tools/sysdb/input.h