[236] in SIPB_Linux_Development
ftp and long passwords
daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Tue Nov 30 01:01:02 1993
From: ghudson@MIT.EDU
Date: Tue, 30 Nov 93 01:00:37 EST
To: nocturne@MIT.EDU
Cc: linux-dev@MIT.EDU
The reason Eric was failing to log in is that he had a password more
than eight characters, as he determined. The reason this failed is
that ftp clients (not servers) strip passwords at eight characters.
They use getpass():
DESCRIPTION
getpass() reads up to a newline or EOF from the file
/dev/tty, after prompting on the standard error output with
the null-terminated string prompt and disabling echoing. A
pointer is returned to a null-terminated string of at most 8
characters. If /dev/tty cannot be opened, a null pointer is
returned. An interrupt will terminate input and send an
interrupt signal to the calling program before returning.
Joy. Oh, well, what do you expect from Unix?
--GBH