FreeBSD Bugzilla – Attachment 171972 Details for
Bug 210722
[PATCH] bsdinstall: partedit allows user to modify bootable partition type to non-supported type without warning
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch with source code of the change
D6879.diff (text/plain), 933 bytes, created by
Dominik Ermel
on 2016-06-30 12:07:42 UTC
(
hide
)
Description:
Patch with source code of the change
Filename:
MIME Type:
Creator:
Dominik Ermel
Created:
2016-06-30 12:07:42 UTC
Size:
933 bytes
patch
obsolete
>Index: usr.sbin/bsdinstall/partedit/gpart_ops.c >=================================================================== >--- usr.sbin/bsdinstall/partedit/gpart_ops.c >+++ usr.sbin/bsdinstall/partedit/gpart_ops.c >@@ -617,6 +617,20 @@ > if (choice) /* Cancel pressed */ > goto endedit; > >+ /* If this is the root partition, check that this fs is bootable */ >+ if (strcmp(items[2].text, "/") == 0 && !is_fs_bootable(scheme, >+ items[0].text)) { >+ char message[512]; >+ sprintf(message, "This file system (%s) is not bootable " >+ "on this system. Are you sure you want to proceed?", >+ items[0].text); >+ dialog_vars.defaultno = TRUE; >+ choice = dialog_yesno("Warning", message, 0, 0); >+ dialog_vars.defaultno = FALSE; >+ if (choice == 1) /* cancel */ >+ goto editpart; >+ } >+ > /* Check if the label has a / in it */ > if (strchr(items[3].text, '/') != NULL) { > dialog_msgbox("Error", "Label contains a /, which is not an "
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 210722
: 171972