diff options
author | Luke Kanies <luke@madstop.com> | 2007-11-23 16:03:56 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-11-23 16:03:56 -0600 |
commit | dbe70a10dd5d3d29f6529b1a0e6b6545308c6a7d (patch) | |
tree | 735c48eec00b24453e242c462dd726737977c2af /lib | |
parent | 7f504b00d8499de6dbd6e12987943b9a5b308d32 (diff) | |
download | puppet-dbe70a10dd5d3d29f6529b1a0e6b6545308c6a7d.tar.gz puppet-dbe70a10dd5d3d29f6529b1a0e6b6545308c6a7d.tar.xz puppet-dbe70a10dd5d3d29f6529b1a0e6b6545308c6a7d.zip |
Added calls to endgrent/endpwent in util/posix.rb to
fix #791.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/puppet/util/posix.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/puppet/util/posix.rb b/lib/puppet/util/posix.rb index 84fb744a9..c518a8797 100755 --- a/lib/puppet/util/posix.rb +++ b/lib/puppet/util/posix.rb @@ -53,6 +53,13 @@ module Puppet::Util::POSIX return object.send(field) end end + + # Apparently the group/passwd methods need to get reset; if we skip + # this call, then new users aren't found. + case type + when :passwd: Etc.send(:endpwent) + when :group: Etc.send(:endgrent) + end return nil end |