summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-11-22 05:33:42 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-11-22 05:33:42 +0000
commit58c0df175ca94cd8bed38cbb76659bfa57e56fe5 (patch)
tree75a4a2e6db5ecaa2a61b940a20972f353af75cee /test
parent42c077fe97c5fc8814cc74ad1dd4f71023e883ea (diff)
downloadpuppet-58c0df175ca94cd8bed38cbb76659bfa57e56fe5.tar.gz
puppet-58c0df175ca94cd8bed38cbb76659bfa57e56fe5.tar.xz
puppet-58c0df175ca94cd8bed38cbb76659bfa57e56fe5.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/puppettest.rb4
1 files changed, 2 insertions, 2 deletions
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
}