tech-install archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[PATCH] sysinst: "none" mount point



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
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;


Home | Main Index | Thread Index | Old Index