]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: fix error message for too small devices
authorKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2012 09:40:46 +0000 (11:40 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2012 09:40:46 +0000 (11:40 +0200)
commited3e0e373845fd7fb991a34386e49ffc48ca01d6
tree5b4b3bc63297e39a1cf1a23ad4737f5b18d85a6b
parent87a97832e11c20e4b4b3ec72f4cdec7ac7bd38d7
fdisk: fix error message for too small devices

 # touch ~/a
 # fdisk -l ~/a
 # fdisk: cannot open /root/a: Success

should be (at least):
 fdisk: cannot open /root/a: Invalid argument

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/utils.c