diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2007-07-26 17:48:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2007-07-26 17:48:42 +0000 |
commit | 23a7bb24f647927a81f48d6a4aba77218aeeca04 (patch) | |
tree | d53c93dfffd572b04c7bec7dbf926eb99f2922a0 /usr.sbin/ppp | |
parent | ab34ecd4bf73a94563b7137eb67e540192eedf1a (diff) |
Remove the space after "Password:" in password prompts where echo is
turned off. This is consistent with historic UNIX behavior.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/pppctl/pppctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/pppctl/pppctl.c b/usr.sbin/ppp/pppctl/pppctl.c index 5f70f9c50ef..e8130896a1a 100644 --- a/usr.sbin/ppp/pppctl/pppctl.c +++ b/usr.sbin/ppp/pppctl/pppctl.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pppctl.c,v 1.18 2005/07/11 22:32:28 brad Exp $ + * $Id: pppctl.c,v 1.19 2007/07/26 17:48:41 millert Exp $ */ #include <sys/types.h> @@ -124,7 +124,7 @@ Receive(int fd, int display) if (display & REC_PASSWD) { /* password time */ if (!passwd) - if ((passwd = getpass("Password: ")) == NULL) + if ((passwd = getpass("Password:")) == NULL) err(1, "getpass"); snprintf(Buffer, sizeof Buffer, "passwd %s\n", passwd); memset(passwd, '\0', strlen(passwd)); |