aboutsummaryrefslogtreecommitdiffstats
path: root/disk-utils/cfdisk.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2014-07-15 13:01:56 +0200
committerKarel Zak <kzak@redhat.com>2014-07-15 13:01:56 +0200
commitbfdb3244e3e5cb522ed029ba3c9c434433288a79 (patch)
tree4404635d2bdf2df9caa249c34f6bf7a2c1d09e89 /disk-utils/cfdisk.c
parentad5d45c046583aa9aa7bb2fb09185f7aa08b4270 (diff)
downloadutil-linux-bfdb3244e3e5cb522ed029ba3c9c434433288a79.tar.gz
cfdisk: accept 's' as well as 'S' for sectors
Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/cfdisk.c')
-rw-r--r--disk-utils/cfdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
index bcc7cfdfbd..7fc9a2c5a8 100644
--- a/disk-utils/cfdisk.c
+++ b/disk-utils/cfdisk.c
@@ -1412,7 +1412,7 @@ static int ui_get_size(struct cfdisk *cf, const char *prompt, uintmax_t *res,
user = *res, rc = 0; /* no change, use default */
else {
size_t len = strlen(buf);
- if (buf[len - 1] == 'S') {
+ if (buf[len - 1] == 'S' || buf[len - 1] == 's') {
insec = 1;
buf[len - 1] = '\0';
}