diff options
| author | mr-bronson <ghbugs@toeai.com> | 2024-08-18 01:32:00 +0000 |
|---|---|---|
| committer | mr-bronson <ghbugs@toeai.com> | 2024-08-18 01:32:00 +0000 |
| commit | d2cf3cd6137d5612a3984b301e6c25d429976886 (patch) | |
| tree | 42e25abc1e938c93a0b61e74b26d30812bdb32be /disk-utils/fdisk-menu.c | |
| parent | d10b038506936f3ad584fa2e017d2d860ed6d133 (diff) | |
| download | util-linux-d2cf3cd6137d5612a3984b301e6c25d429976886.tar.gz | |
fdisk: fix sgi_menu_cb return value
Would otherwise return -EINVAL even on success after fdisk_sgi_set_bootfile.
Diffstat (limited to 'disk-utils/fdisk-menu.c')
| -rw-r--r-- | disk-utils/fdisk-menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/fdisk-menu.c b/disk-utils/fdisk-menu.c index 717554b0e3..8df4ac8d21 100644 --- a/disk-utils/fdisk-menu.c +++ b/disk-utils/fdisk-menu.c @@ -979,7 +979,7 @@ static int sgi_menu_cb(struct fdisk_context **cxt0, rc = fdisk_toggle_partition_flag(cxt, n, SGI_FLAG_BOOT); break; case 'b': - fdisk_sgi_set_bootfile(cxt); + rc = fdisk_sgi_set_bootfile(cxt); break; case 'c': rc = fdisk_ask_partnum(cxt, &n, FALSE); |
