Commit graph

9 commits

Author SHA1 Message Date
Karel Zak
4fb18cde32 libfdisk: do not use va_list in the Ask API
# fdisk /dev/sda
  Welcome to fdisk (util-linux 2.23).

  [...]

  Command (m for help): a
  Segmentation fault (core dumped)

It's too fragile, the va_list implementation is architecture specific
and it seems we need such thing in libfdisk at all.

Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-09 13:06:02 +02:00
Yuri Chornoivan
ef75bc880e Fix various typos 2013-04-26 12:50:03 +02:00
Karel Zak
38de0706e8 fdisk: use comma in the ask-partition-number dialog (again)
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-12 10:58:33 +01:00
Karel Zak
82d55456a9 fdisk: remove comma from ask number dialog
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 13:00:58 +01:00
Karel Zak
ccf48af540 libfdisk: add Yes/No to Ask API
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 13:00:56 +01:00
Karel Zak
7e1e36d865 fdisk: allow zero as default offset/size
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 13:00:56 +01:00
Karel Zak
3e8f74dc60 fdisk: add callacks for info, warn and warnx Ask API
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 13:00:55 +01:00
Karel Zak
4114da08d0 libfdisk: extend "ask" API, add support for offsets
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 13:00:55 +01:00
Karel Zak
416c43a9a5 fdisk: add callback for ask-numbers API
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11 13:00:54 +01:00