]> err.no Git - util-linux/commit
fdisk: eliminate redundant call to open()
authorMarkus Rinne <markus.ka.rinne@gmail.com>
Wed, 22 Sep 2010 19:11:54 +0000 (22:11 +0300)
committerKarel Zak <kzak@redhat.com>
Thu, 30 Sep 2010 20:52:42 +0000 (22:52 +0200)
commit263644840f3376c7d44d7f2bdf0daee902908165
treeed4e01c2979c46db188dc118a7d93004da690adb
parentd4ac6657c5ff8b3a29cdf236ab787558aab8fbb1
fdisk: eliminate redundant call to open()

Don't use open() in get_boot() if it's called with an argument try_only,
because the file has already been opened by the caller.

Signed-off-by: Markus Rinne <markus.ka.rinne@gmail.com>
fdisk/fdisk.c