Add comment: cyeoh says that getpass is deprecated, because it may
authorMartin Pool <mbp@samba.org>
Wed, 29 Aug 2001 07:23:30 +0000 (07:23 +0000)
committerMartin Pool <mbp@samba.org>
Wed, 29 Aug 2001 07:23:30 +0000 (07:23 +0000)
return a truncated password on some systems, and it is not in the LSB.

authenticate.c

index 4058220..2b98119 100644 (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: ");
        }