]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: fix error message on 'd' command
authorKarel Zak <kzak@redhat.com>
Wed, 1 Aug 2018 07:29:12 +0000 (09:29 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Aug 2018 07:29:12 +0000 (09:29 +0200)
commitdbcd1a4964a6b23bbf2566fac76175179cb662d5
tree4b8c6a96578d8a251a874501f251984ead55d6f6
parentd5fd9ac6b208c5acdb6c0023757a7e2827474482
fdisk: fix error message on 'd' command

Command (m for help): d
No partition is defined yet!
Could not delete partition 93840461057817    <--- !

Don't print 'Could not delete..' if no partition is defined yet.

Addresses: https://github.com/karelzak/util-linux/issues/667
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fdisk-menu.c