# File lib/puppet/provider/file/posix.rb, line 56 56: def retrieve(resource) 57: unless stat = resource.stat(false) 58: return :absent 59: end 60: 61: currentvalue = stat.uid 62: 63: # On OS X, files that are owned by -2 get returned as really 64: # large UIDs instead of negative ones. This isn't a Ruby bug, 65: # it's an OS X bug, since it shows up in perl, too. 66: if currentvalue > Puppet[:maximum_uid].to_i 67: self.warning "Apparently using negative UID (#{currentvalue}) on a platform that does not consistently handle them" 68: currentvalue = :silly 69: end 70: 71: currentvalue 72: end