Subject: | FreeBSD: Gecos field isn't quoted correctly |
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'};