Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst nullify ftp password when changing use...



details:   https://anonhg.NetBSD.org/src/rev/0be49352e88d
branches:  trunk
changeset: 534535:0be49352e88d
user:      grant <grant%NetBSD.org@localhost>
date:      Mon Jul 29 03:24:47 2002 +0000

description:
nullify ftp password when changing user to 'ftp', from Thomas Klausner
in install/11436.

diffstat:

 distrib/utils/sysinst/menus.mi.en |  7 +++++--
 distrib/utils/sysinst/menus.mi.fr |  7 +++++--
 distrib/utils/sysinst/menus.mi.pl |  7 +++++--
 3 files changed, 15 insertions(+), 6 deletions(-)

diffs (63 lines):

diff -r 369f008366ff -r 0be49352e88d distrib/utils/sysinst/menus.mi.en
--- a/distrib/utils/sysinst/menus.mi.en Mon Jul 29 03:10:16 2002 +0000
+++ b/distrib/utils/sysinst/menus.mi.en Mon Jul 29 03:24:47 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: menus.mi.en,v 1.56 2002/07/29 03:05:16 grant Exp $     */
+/*     $NetBSD: menus.mi.en,v 1.57 2002/07/29 03:24:47 grant Exp $     */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -281,7 +281,10 @@
        option "Directory", action
                { msg_prompt (MSG_dir, ftp_dir, ftp_dir, 255); };
        option "User", action
-               { msg_prompt (MSG_user, ftp_user, ftp_user, 255); };
+               { msg_prompt (MSG_user, ftp_user, ftp_user, 255);
+                 if (strcmp(ftp_user, "ftp") == 0)
+                       ftp_pass[0] = '\0';
+               };
        option "Password", action
                { if (strcmp(ftp_user, "ftp") == 0)
                        msg_prompt (MSG_email, ftp_pass, ftp_pass, 255);
diff -r 369f008366ff -r 0be49352e88d distrib/utils/sysinst/menus.mi.fr
--- a/distrib/utils/sysinst/menus.mi.fr Mon Jul 29 03:10:16 2002 +0000
+++ b/distrib/utils/sysinst/menus.mi.fr Mon Jul 29 03:24:47 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: menus.mi.fr,v 1.36 2002/07/29 02:51:07 grant Exp $     */
+/*     $NetBSD: menus.mi.fr,v 1.37 2002/07/29 03:24:47 grant Exp $     */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -250,7 +250,10 @@
        option "Répertoire", action
                { msg_prompt (MSG_dir, ftp_dir, ftp_dir, 255); };
        option "Utilisateur", action
-               { msg_prompt (MSG_user, ftp_user, ftp_user, 255); };
+               { msg_prompt (MSG_user, ftp_user, ftp_user, 255);
+                 if (strcmp(ftp_user, "ftp") == 0)
+                       ftp_pass[0] = '\0';
+               }; 
        option "Mot de passe", action
                { if (strcmp(ftp_user, "ftp") == 0)
                        msg_prompt (MSG_email, ftp_pass, ftp_pass, 255);
diff -r 369f008366ff -r 0be49352e88d distrib/utils/sysinst/menus.mi.pl
--- a/distrib/utils/sysinst/menus.mi.pl Mon Jul 29 03:10:16 2002 +0000
+++ b/distrib/utils/sysinst/menus.mi.pl Mon Jul 29 03:24:47 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: menus.mi.pl,v 1.7 2002/06/02 15:05:24 zuntum Exp $     */
+/*     $NetBSD: menus.mi.pl,v 1.8 2002/07/29 03:24:48 grant Exp $      */
 /*     Based on english version: */
 /*     NetBSD: menus.mi.en,v 1.49 2002/04/04 14:26:44 ad Exp   */
 
@@ -283,7 +283,10 @@
        option "Katalog", action
                { msg_prompt (MSG_dir, ftp_dir, ftp_dir, 255); };
        option "Uzytkownik", action
-               { msg_prompt (MSG_user, ftp_user, ftp_user, 255); };
+               { msg_prompt (MSG_user, ftp_user, ftp_user, 255);
+                 if (strcmp(ftp_user, "ftp") == 0)
+                       ftp_pass[0] = '\0';
+               }; 
        option "Haslo", action
                { if (strcmp(ftp_user, "ftp") == 0)
                        msg_prompt (MSG_email, ftp_pass, ftp_pass, 255);



Home | Main Index | Thread Index | Old Index