Changeset 44428bb in mainline


Ignore:
Timestamp:
2018-08-08T13:09:24Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3cdd876
Parents:
1dcba91
git-author:
Jiri Svoboda <jiri@…> (2018-08-07 17:08:35)
git-committer:
Jiri Svoboda <jiri@…> (2018-08-08 13:09:24)
Message:

Fix broken partition creation in fdisk (oops).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/fdisk/fdisk.c

    r1dcba91 r44428bb  
    517517        }
    518518
     519        /* Ask for mount point */
     520        tinput = tinput_new();
     521        if (tinput == NULL) {
     522                rc = ENOMEM;
     523                goto error;
     524        }
     525
     526        rc = tinput_set_prompt(tinput, "?> ");
     527        if (rc != EOK)
     528                goto error;
     529
     530        while (true) {
     531                printf("Enter mount point for new partition (Auto, None or /path).\n");
     532                rc = tinput_read_i(tinput, "Auto", &mountp);
     533                if (rc != EOK)
     534                        goto error;
     535
     536                rc = vol_mountp_validate(mountp);
     537                if (rc == EOK)
     538                        break;
     539
     540                free(mountp);
     541                mountp = NULL;
     542        }
     543
     544        tinput_destroy(tinput);
     545        tinput = NULL;
    519546
    520547        fdisk_pspec_init(&pspec);
Note: See TracChangeset for help on using the changeset viewer.