]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: cleanup prompt usage
authorKarel Zak <kzak@redhat.com>
Fri, 27 Mar 2015 14:04:58 +0000 (15:04 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 27 Mar 2015 14:04:58 +0000 (15:04 +0100)
commit3ba8e422a040c282483803f8ffe6279b93bc6139
tree09b0a7c3ad21ddcad434731de0360dfab4591cad
parentdda7fe12acff6613f23c67de15905848b7521767
sfdisk: cleanup prompt usage

Let's use fgets-like callback only when compiled with readline,
otherwise (and also for non-tty) print prompt by printf().

Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.c