Hello,

I was just asked why the passwd(1) utility allows to set up a password 
containing spaces and tabs, and the adduser(8) script does not: the password 
is stripped of anything past a space or a tab. E.g., "my password" turns into 
"my". It turned out that it's pw(8) utility that does such stripping; the 
attached patch makes it behave consistently with passwd(1).

Regards,
Alexey.

P.S. Shouldn't passwd(1) be just a suid-wrapper for pw(8)? Are there any 
security implications for this?

-- 
,----------------------------------------,
| A quoi ca sert d'etre sur la terre     | Alexey V. Neyman
| Si c'est pour faire nos vies a genoux! | mailto:[EMAIL PROTECTED]
`------------------( Les Rois du Monde )-'
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to