X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fruserpass.c;h=4c12b712ce023dba2a0a924b7b027a48e7674479;hb=102679e27468bf6f8e1da24ccb9b0d93c489ec7e;hp=085d493a1659d2ae3bb73409dbfbb1b5c559b8fd;hpb=966e60efa721d87e5f1cd475de08c26e3bac967e;p=mmh diff --git a/sbr/ruserpass.c b/sbr/ruserpass.c index 085d493..4c12b71 100644 --- a/sbr/ruserpass.c +++ b/sbr/ruserpass.c @@ -1,4 +1,5 @@ /* + * Portions of this code are * Copyright (c) 1985 Regents of the University of California. * All rights reserved. * @@ -65,7 +66,6 @@ ruserpass(char *host, char **aname, char **apass) char *hdir, buf[BUFSIZ]; int t, usedefault = 0; struct stat stb; - extern int errno; hdir = getenv("HOME"); if (hdir == NULL) @@ -162,7 +162,7 @@ done: char *mypass; snprintf(prompt, sizeof(prompt), "Password (%s:%s): ", host, *aname); - mypass = (char *)getpass (prompt); + mypass = nmh_getpass(prompt); if (*mypass == '\0') { mypass = *aname;