Re: [patch] fixup GECOS handling
- From
Petr Baudis <pasky@ucw.cz>
- Date
- Apr 22, 2005, 17:18 UTC
- Message-ID
- <20050422171818.GE7173@pasky.ji.cz>
- In-Reply-To
- <1114189105.29271.36.camel@nosferatu.lan>
Dear diary, on Fri, Apr 22, 2005 at 06:58:25PM CEST, I got a letter where Martin Schlemmer <azarah@nosferatu.za.org> told me that...
> Meaning, if they use a ',' in one of the fields (and it is a linux > system with the chfn most probably from the shadow package), then they > are looking for trouble. The only reason I added the ';' was because > somebody said whatever OS used it instead of a ','.
What about just swapping the two tests so that ; is cut off and , only when no ; is around?
-- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor