From: Martin Pool Date: Wed, 29 Aug 2001 07:23:30 +0000 (+0000) Subject: Add comment: cyeoh says that getpass is deprecated, because it may X-Git-Tag: mbp_bk_export0~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64bd756832d93c0767e72a3432fda29b30d69405;p=thirdparty%2Frsync.git 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. --- 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: "); }