]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: simplify device opening
authorDavidlohr Bueso <dave@gnu.org>
Mon, 23 Apr 2012 11:07:16 +0000 (13:07 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Apr 2012 11:07:16 +0000 (13:07 +0200)
commit8d95e4ee613b98ccf5cf4cacef08f33f2b68c1dc
treee435df92aab4831c7b1fe9b073d6b01ddfabda47
parentf45121dd463c199fd58e85eabd7359789aa5f814
fdisk: simplify device opening

This patch makes fdisk open(2) the device in only one place (get_boot), instead
of having to depend on user input (ie: listing -l).

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