]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: rework fatal errors
authorDavidlohr Bueso <dave@gnu.org>
Fri, 27 Apr 2012 11:23:51 +0000 (13:23 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 2 May 2012 07:33:46 +0000 (09:33 +0200)
commit34574201787722fecf12c37f33aad026ea2e5d9e
treed1435be629980a117543777a3c9d2e894c0f704d
parent337643ad0f3f3c4b69264c77836fd5c102f91416
fdisk: rework fatal errors

When the device cannot be opened, there's no point calling fatal() when we can
just use err(3). When any other kind of fatal error occurs it's Ok, in addition
we can also go ahead and close the descriptor before exiting the program as
it's currently leaking.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
fdisk/fdisk.c
fdisk/fdisk.h