]> err.no Git - util-linux/commit
cfdisk: close the program when terminal isn't present
authorFrancesco Cosoleto <cosoleto@gmail.com>
Sat, 18 Dec 2010 18:24:03 +0000 (19:24 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 30 Dec 2010 22:57:16 +0000 (23:57 +0100)
commit0d8589c56547098d9026856c85dbf0d72d72e36c
tree886ba5a25ff604fcb5e7e55939e0ae358bda743f
parent6ebe8f630ad8f31cd0aca0636f73eb9b4ffe5aa2
cfdisk: close the program when terminal isn't present

cfdisk was getting characters without checking ERR return code, causing an
endless while loop in do_curses_fdisk() or in other functions when the terminal
is lost.

[kzak@redhat.com: - fix coding style, remove CR macro]

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/cfdisk.c