aboutsummaryrefslogtreecommitdiffstats
path: root/authenticate.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-08-29 07:23:30 +0000
committerMartin Pool <mbp@samba.org>2001-08-29 07:23:30 +0000
commit64bd756832d93c0767e72a3432fda29b30d69405 (patch)
tree7eac385aea9c01463ce51b857fea952e038d0845 /authenticate.c
parent8642efd0d6bb172c5fed17d545afa615148cfe6b (diff)
downloadandroid_external_rsync-64bd756832d93c0767e72a3432fda29b30d69405.tar.gz
android_external_rsync-64bd756832d93c0767e72a3432fda29b30d69405.tar.bz2
android_external_rsync-64bd756832d93c0767e72a3432fda29b30d69405.zip
Add comment: cyeoh says that getpass is deprecated, because it may
return a truncated password on some systems, and it is not in the LSB.
Diffstat (limited to 'authenticate.c')
-rw-r--r--authenticate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/authenticate.c b/authenticate.c
index 40582201..2b981195 100644
--- a/authenticate.c
+++ b/authenticate.c
@@ -272,6 +272,9 @@ void auth_client(int fd, char *user, char *challenge)
if (!user || !*user) return;
if (!(pass=getpassf(password_file)) && !(pass=getenv("RSYNC_PASSWORD"))) {
+ /* XXX: cyeoh says that getpass is deprecated, because
+ it may return a truncated password on some systems,
+ and it is not in the LSB. */
pass = getpass("Password: ");
}