projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add bash completion definitions from Debian
[mmh]
/
sbr
/
ruserpass.c
diff --git
a/sbr/ruserpass.c
b/sbr/ruserpass.c
index
68809df
..
4c12b71
100644
(file)
--- 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.
*
* 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;
char *hdir, buf[BUFSIZ];
int t, usedefault = 0;
struct stat stb;
- extern int errno;
hdir = getenv("HOME");
if (hdir == NULL)
hdir = getenv("HOME");
if (hdir == NULL)
@@
-162,7
+162,7
@@
done:
char *mypass;
snprintf(prompt, sizeof(prompt), "Password (%s:%s): ", host, *aname);
char *mypass;
snprintf(prompt, sizeof(prompt), "Password (%s:%s): ", host, *aname);
- mypass = getpass (prompt);
+ mypass = nmh_getpass(prompt);
if (*mypass == '\0') {
mypass = *aname;
if (*mypass == '\0') {
mypass = *aname;