From 58c0df175ca94cd8bed38cbb76659bfa57e56fe5 Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 22 Nov 2005 05:33:42 +0000 Subject: fixing incredibly annoying bug where os x returns stupidly large uid when uid is below 0 git-svn-id: https://reductivelabs.com/svn/puppet/trunk@749 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/puppettest.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/puppettest.rb b/test/puppettest.rb index 0bd7d80c5..2d291a91d 100644 --- a/test/puppettest.rb +++ b/test/puppettest.rb @@ -182,7 +182,7 @@ module TestPuppet def nonrootuser Etc.passwd { |user| - if user.uid != Process.uid + if user.uid != Process.uid and user.uid > 0 return user end } @@ -190,7 +190,7 @@ module TestPuppet def nonrootgroup Etc.group { |group| - if group.gid != Process.gid + if group.gid != Process.gid and group.gid > 0 return group end } -- cgit