nullify ftp password when changing user to 'ftp', from Thomas Klausner

in install/11436.
This commit is contained in:
grant 2002-07-29 03:24:47 +00:00
parent 9891751782
commit 2a31902244
3 changed files with 15 additions and 6 deletions

View File

@ -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 @@ menu ftpsource, title "Change";
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);

View File

@ -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 @@ menu ftpsource, title "Changer";
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);

View File

@ -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 @@ menu ftpsource, title "Zmien";
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);