# File lib/puppet/util/posix.rb, line 9
 9:   def get_posix_field(space, field, id)
10:     raise Puppet::DevError, "Did not get id from caller" unless id
11: 
12:     if id.is_a?(Integer)
13:       if id > Puppet[:maximum_uid].to_i
14:         Puppet.err "Tried to get #{field} field for silly id #{id}"
15:         return nil
16:       end
17:       method = methodbyid(space)
18:     else
19:       method = methodbyname(space)
20:     end
21: 
22:     begin
23:       return Etc.send(method, id).send(field)
24:     rescue ArgumentError => detail
25:       # ignore it; we couldn't find the object
26:       return nil
27:     end
28:   end