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.
This commit is contained in:
Martin Pool committed 2001-08-29 07:23:30 +00:00
1 parent 8642efd0d6
commit 64bd756832
1 file changed
+3
+3
View File
@@ -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: ");
}