On Sat, 25 Jun 2011 19:10:40 +0200, Merritt Krakowitzer wrote:
> 
> This updates the lastchg field with days since epoch which is currently
> not happening on solaris.
> 
> Signed-off-by: Merritt Krakowitzer <[email protected]>
> ---
>  lib/puppet/provider/user/user_role_add.rb |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/lib/puppet/provider/user/user_role_add.rb 
> b/lib/puppet/provider/user/user_role_add.rb
> index 2377f9e..d0cba07 100644
> --- a/lib/puppet/provider/user/user_role_add.rb
> +++ b/lib/puppet/provider/user/user_role_add.rb
> @@ -174,6 +174,7 @@ Puppet::Type.type(:user).provide :user_role_add, :parent 
> => :useradd, :source =>
>              line_arr = line.split(':')
>              if line_arr[0] == @resource[:name]
>                line_arr[1] = cryptopw
> +              line_arr[2] = Time.now().to_i / 86400
>                line = line_arr.join(':')
>              end
>              shadow_tmp.print line
> -- 
> 1.7.5.4
> 

Merritt,

Thanks for sending this.  The change looks extremely straight forward,
though it should definitely have some testing to make sure we don't
accidentally regress on this in the future.

I can probably get to this in the next few days if it's not something
you have the time to get to.

Thanks,
Jacob

-- 
Jacob Helwig

Attachment: signature.asc
Description: Digital signature

Reply via email to