]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: fix -l [<device>]
authorKarel Zak <kzak@redhat.com>
Mon, 28 Jul 2014 09:57:10 +0000 (11:57 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 28 Jul 2014 10:07:32 +0000 (12:07 +0200)
commit52d92543ffb8efb56036f316a1072d8fbba62c38
treeb673d16f7fc1f704fb2e458be655afdf652a2043
parent5adf126ef2c370cd14299f6ed0a151c77b8acc3f
fdisk: fix -l [<device>]

 * don't use err(), but warn(), so don't stop after the first error

 * display all errors when "-l <device> ..." specified

 * display only EACCES errors when list whole disks from
   /proc/partitions ("fdisk -l" )

Reported-by: Boian Bonev <bbonev@ipacct.com>
Addresses: https://github.com/karelzak/util-linux/pull/106
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fdisk.c