mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-24 06:38:15 -04:00
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:
1 parent
8642efd0d6
commit
64bd756832
1 file changed
+3
@@ -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: ");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user