Garance A Drosihn wrote:
> >the machine account always ends with a $
> >
> >So it would only have to be for the account name
> 
> I think I'd prefer a somewhat more involved change, one which
> allowed $ only for account-name, and only as the last character.
> That seems like a good idea to me.
> 
> But then, I'm not volunteering to write it...   :-)

My change doesn't allow it only for the last, but it does restrict
it to the login name.

I notice that pw.h exports the code.  If somone is using the
function from outside, that's probably something that needs to
be considered.  I've changed the prototype, so that it will
at least complain on compilation, if someone is using the code
that way.

I think the "$" on the end worked because of the "dangling $"
handling in the shell they they happened to be using; the
original example namess are still broken for some shells, with
no back-quoting.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to