From 10634d69c654686d05f34a39e1ba1c603a13a3cb Mon Sep 17 00:00:00 2001 From: luke Date: Thu, 9 Nov 2006 22:50:34 +0000 Subject: Fixing #324. Mkusers was not specifically ignoring the root user, and it is now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1851 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/config.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/puppet') diff --git a/lib/puppet/config.rb b/lib/puppet/config.rb index 5725bcd93..9a381585a 100644 --- a/lib/puppet/config.rb +++ b/lib/puppet/config.rb @@ -411,6 +411,9 @@ class Config # If a user and/or group is set, then make sure we're # managing that object if obj.respond_to? attr and name = obj.send(attr) + # Skip root or wheel + next if %w{root wheel}.include?(name.to_s) + # Skip owners and groups we've already done, but tag # them with our section if necessary if done[type].include?(name) -- cgit