Subject: | Re: FreeBSD: Gecos field isn't quoted correctly |
Date: | Wed, 20 Oct 2010 10:31:23 -0400 (EDT) |
To: | Matt Simerson via RT <bug-Provision-Unix [...] rt.cpan.org> |
From: | FERRENCY [...] cpan.org |
Thanks!
For future reference: it was also pointed out to me that "Peter O'Toole"
will break the Gecos field quoting; but at least at this point it works
just as well in FreeBSD as it does in Linux.
Alan
On Wed, 20 Oct 2010, Matt Simerson via RT wrote:
Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=62282 >
>
>
> Patch applied. Thanks.
>
> v 0.99 uploaded to CPAN.
>
> Matt
>
> On Oct 19, 2010, at 11:38 AM, Alan Ferrency via RT wrote:
>
>> Tue Oct 19 14:38:13 2010: Request 62282 was acted upon.
>> Transaction: Ticket created by FERRENCY
>> Queue: Provision-Unix
>> Subject: FreeBSD: Gecos field isn't quoted correctly
>> Broken in: 0.98
>> Severity: Normal
>> Owner: Nobody
>> Requestors: FERRENCY@cpan.org
>> Status: new
>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=62282 >
>>
>>
>> Hello,
>>
>> Under FreeBSD, the gecos field is not quoted on the $pwcmd command line
>> the way it is in the Linux code. This causes problems for setting up
>> Gecos fields in FreeBSD when they contain spaces.
>>
>> I've attached a patch below to fix this.
>>
>> Thanks!
>>
>> Alan Ferrency
>> pair Networks, Inc.
>>
>>
>> *** /usr/local/lib/perl5/site_perl/5.8.9/Provision/Unix/User/FreeBSD.pm
>> Wed Jun 2 11:57:38 2010
>> --- /usr/local/lib/perl5/site_perl/5.8.9/Provision/Unix/User/FreeBSD.pm~
>> Tue Oct 19 13:48:33 2010
>> ***************
>> *** 93 ****
>> ! $pwcmd .= "-c $p{'gecos'} " if $p{'gecos'};
>> --- 93 ----
>> ! $pwcmd .= "-c '$p{'gecos'}' " if $p{'gecos'};
>>
>
>
>
>