Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst Clean up the FTP source selection menu...
details: https://anonhg.NetBSD.org/src/rev/3b7c230b8a01
branches: trunk
changeset: 473780:3b7c230b8a01
user: cgd <cgd%NetBSD.org@localhost>
date: Sat Jun 19 01:10:59 1999 +0000
description:
Clean up the FTP source selection menu some. When changing all but
password, offer defaults. When displaying the current values, note
that a password has been set and is hidden, rather than displaying
the number of characters entered for the password. (Thanks to wrstuden
for the translation of "hidden"...)
diffstat:
distrib/utils/sysinst/menus.mi.eng | 20 +++++++++-----------
distrib/utils/sysinst/menus.mi.fr | 20 +++++++++-----------
2 files changed, 18 insertions(+), 22 deletions(-)
diffs (88 lines):
diff -r 3e27fcf4b77b -r 3b7c230b8a01 distrib/utils/sysinst/menus.mi.eng
--- a/distrib/utils/sysinst/menus.mi.eng Sat Jun 19 00:53:31 1999 +0000
+++ b/distrib/utils/sysinst/menus.mi.eng Sat Jun 19 01:10:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: menus.mi.eng,v 1.27 1999/04/13 14:49:56 bouyer Exp $ */
+/* $NetBSD: menus.mi.eng,v 1.28 1999/06/19 01:10:59 cgd Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -222,26 +222,24 @@
menu ftpsource, title " Change";
display action
- { int i;
- msg_display (MSG_ftpsource, ftp_host, ftp_dir, ftp_user);
+ { msg_display (MSG_ftpsource, ftp_host, ftp_dir, ftp_user);
if (strcmp(ftp_user, "ftp") == 0)
msg_printf_add ("%s", ftp_pass);
- else
- for (i = strlen(ftp_pass); i>0; i--)
- msg_printf_add ("*");
+ else if (strlen(ftp_pass) != 0)
+ msg_printf_add ("** hidden **", ftp_pass);
};
option "Host", action
- { msg_prompt (MSG_host, NULL, ftp_host, 255); };
+ { msg_prompt (MSG_host, ftp_host, ftp_host, 255); };
option "Directory", action
- { msg_prompt (MSG_dir, NULL, ftp_dir, 255); };
+ { msg_prompt (MSG_dir, ftp_dir, ftp_dir, 255); };
option "User", action
- { msg_prompt (MSG_user, NULL, ftp_user, 255); };
+ { msg_prompt (MSG_user, ftp_user, ftp_user, 255); };
option "Password", action
{ if (strcmp(ftp_user, "ftp") == 0)
- msg_prompt (MSG_email, NULL, ftp_pass, 255);
+ msg_prompt (MSG_email, ftp_pass, ftp_pass, 255);
else {
msg_noecho ();
- msg_prompt (MSG_passwd, NULL, ftp_pass, 255);
+ msg_prompt (MSG_passwd, "", ftp_pass, 255);
msg_echo ();
}
};
diff -r 3e27fcf4b77b -r 3b7c230b8a01 distrib/utils/sysinst/menus.mi.fr
--- a/distrib/utils/sysinst/menus.mi.fr Sat Jun 19 00:53:31 1999 +0000
+++ b/distrib/utils/sysinst/menus.mi.fr Sat Jun 19 01:10:59 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: menus.mi.fr,v 1.16 1999/04/13 14:49:56 bouyer Exp $ */
+/* $NetBSD: menus.mi.fr,v 1.17 1999/06/19 01:10:59 cgd Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -223,26 +223,24 @@
menu ftpsource, title " Changer";
display action
- { int i;
- msg_display (MSG_ftpsource, ftp_host, ftp_dir, ftp_user);
+ { msg_display (MSG_ftpsource, ftp_host, ftp_dir, ftp_user);
if (strcmp(ftp_user, "ftp") == 0)
msg_printf_add ("%s", ftp_pass);
- else
- for (i = strlen(ftp_pass); i>0; i--)
- msg_printf_add ("*");
+ else if (strlen(ftp_pass) != 0)
+ msg_printf_add ("** caché **", ftp_pass);
};
option "Serveur ftp", action
- { msg_prompt (MSG_host, NULL, ftp_host, 255); };
+ { msg_prompt (MSG_host, ftp_host, ftp_host, 255); };
option "Répertoire", action
- { msg_prompt (MSG_dir, NULL, ftp_dir, 255); };
+ { msg_prompt (MSG_dir, ftp_dir, ftp_dir, 255); };
option "Utilisateur", action
- { msg_prompt (MSG_user, NULL, ftp_user, 255); };
+ { msg_prompt (MSG_user, ftp_user, ftp_user, 255); };
option "Mot de passe", action
{ if (strcmp(ftp_user, "ftp") == 0)
- msg_prompt (MSG_email, NULL, ftp_pass, 255);
+ msg_prompt (MSG_email, ftp_pass, ftp_pass, 255);
else {
msg_noecho ();
- msg_prompt (MSG_passwd, NULL, ftp_pass, 255);
+ msg_prompt (MSG_passwd, "", ftp_pass, 255);
msg_echo ();
}
};
Home |
Main Index |
Thread Index |
Old Index