Remove control+r handling from geliboot's pwgets()

pwgets() is based on ngets() from libstand, which includes a feature
that is not wanted in a very of the function designed for password
handling.

Pressing control+r echos out the entered string

This commit removes that feature from pwgets()

PR:		217298
Reported by:	ehaupt
Reviewed by:	kristof, tsoome, ehaupt
Sponsored by:	ScaleEngine Inc.
Differential Revision:	https://reviews.freebsd.org/D9782
This commit is contained in:
Allan Jude 2017-02-24 16:52:57 +00:00
parent e42e2a1edc
commit f91d1c83cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314213

View File

@ -60,14 +60,6 @@ pwgets(char *buf, int n)
putchar('\b');
}
break;
case 'r'&037: {
char *p;
putchar('\n');
for (p = buf; p < lp; ++p)
putchar(*p);
break;
}
case 'u'&037:
case 'w'&037:
lp = buf;