fix password handling
This commit is contained in:
parent
10436796ef
commit
4d1186c003
3 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
1999-08-09 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
|
||||||
|
|
||||||
|
* stage2/stage2.c (run_menu): Terminate the string PASSWORD
|
||||||
|
before checking if ENTERED is identical to PASSWORD. Reported
|
||||||
|
by Mark Lundeberg <aa026@pgfn.bc.ca>.
|
||||||
|
|
||||||
1999-08-08 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
|
1999-08-08 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
|
||||||
|
|
||||||
* stage2/stage2.c (set_line_normal): New function.
|
* stage2/stage2.c (set_line_normal): New function.
|
||||||
|
|
1
THANKS
1
THANKS
|
@ -15,6 +15,7 @@ Eric Hanchrow <erich@microsoft.com>
|
||||||
Heiko Schroeder <heiko@pool.informatik.rwth-aachen.de>
|
Heiko Schroeder <heiko@pool.informatik.rwth-aachen.de>
|
||||||
Klaus Reichl <klaus.reichl@alcatel.at>
|
Klaus Reichl <klaus.reichl@alcatel.at>
|
||||||
Kunihiro Ishiguro <kunihiro@zebra.org>
|
Kunihiro Ishiguro <kunihiro@zebra.org>
|
||||||
|
Mark Lundeberg <aa026@pgfn.bc.ca>
|
||||||
Miles Bader <miles@gnu.org>
|
Miles Bader <miles@gnu.org>
|
||||||
OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
|
OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
|
||||||
Pavel Roskin <pavel_roskin@geocities.com>
|
Pavel Roskin <pavel_roskin@geocities.com>
|
||||||
|
|
|
@ -364,8 +364,12 @@ restart:
|
||||||
gotoxy(1, 21);
|
gotoxy(1, 21);
|
||||||
get_cmdline (" Password: ", commands, entered, 31, '*');
|
get_cmdline (" Password: ", commands, entered, 31, '*');
|
||||||
|
|
||||||
while (! isspace (*pptr))
|
while (! isspace (*pptr) && *pptr)
|
||||||
pptr ++;
|
pptr ++;
|
||||||
|
|
||||||
|
/* Make sure that PASSWORD is NUL-terminated. */
|
||||||
|
*pptr++ = 0;
|
||||||
|
|
||||||
if (! strcmp (password, entered))
|
if (! strcmp (password, entered))
|
||||||
{
|
{
|
||||||
char *new_file = config_file;
|
char *new_file = config_file;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue