summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_mountroot.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-11-14 14:12:43 +0000
committered <ed@FreeBSD.org>2010-11-14 14:12:43 +0000
commit4ee939c936810cdbeb5d64f9b2b28890e4af0814 (patch)
tree8cfc4a89bf07768ed21b9e6d521da70520fb8e36 /sys/kern/vfs_mountroot.c
parentdd93d3c0fda933782c0813b9cf0b13c8c5f80054 (diff)
downloadFreeBSD-src-4ee939c936810cdbeb5d64f9b2b28890e4af0814.zip
FreeBSD-src-4ee939c936810cdbeb5d64f9b2b28890e4af0814.tar.gz
Add support for asterisk characters when filling in the GELI password
during boot. Change the last argument of gets() to indicate a visibility flag and add definitions for the numerical constants. Except for the value 2, gets() will behave exactly the same, so existing consumers shouldn't break. We only use it in two places, though. Submitted by: lme (older version)
Diffstat (limited to 'sys/kern/vfs_mountroot.c')
-rw-r--r--sys/kern/vfs_mountroot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_mountroot.c b/sys/kern/vfs_mountroot.c
index 07c2988..48a632e 100644
--- a/sys/kern/vfs_mountroot.c
+++ b/sys/kern/vfs_mountroot.c
@@ -484,7 +484,7 @@ parse_dir_ask(char **conf)
again:
printf("\nmountroot> ");
- gets(name, sizeof(name), 1);
+ gets(name, sizeof(name), GETS_ECHO);
if (name[0] == '\0')
return (0);
if (name[0] == '?') {
OpenPOWER on IntegriCloud