[PATCH] sysinst: "none" mount point
[email protected] Thu, 26 Oct 2023 09:20:27 +0200
| Newsgroups | gmane.os.netbsd.devel.installation |
|---|---|
| Message-ID | <[email protected]> |
--ke26wIzz8THDG7wU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
When setting the mount point, the message proposes the possibly
translated keyword "<none>" but the code only compares to "none".
Attached is the simple fix.
--
Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
http://www.kergis.com/
http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
--ke26wIzz8THDG7wU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff
diff --git a/usr.sbin/sysinst/label.c b/usr.sbin/sysinst/label.c
index 3438055fcd6..3ef4fddd000 100644
--- a/usr.sbin/sysinst/label.c
+++ b/usr.sbin/sysinst/label.c
@@ -439,7 +439,9 @@ edit_fs_mountpt(menudesc *m, void *arg)
if (last != NULL)
last[1] = 0;
- if (first == NULL || *first == 0 || strcmp(first, "none") == 0) {
+ if (first == NULL || *first == 0
+ || strcmp(first, "<none>") == 0
+ || strcmp(first, "none") == 0) {
edit->wanted->mount[0] = 0;
edit->wanted->instflags &= ~PUIINST_MOUNT;
return 0;
--ke26wIzz8THDG7wU--