~ubuntu-branches/ubuntu/oneiric/puppet/oneiric-security

« back to all changes in this revision

Viewing changes to lib/puppet/util/posix.rb

  • Committer: Bazaar Package Importer
  • Author(s): Micah Anderson
  • Date: 2008-07-26 15:43:45 UTC
  • mfrom: (1.1.8 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080726154345-c03m49twzxewdwjn
Tags: 0.24.5-2
* Fix puppetlast to work with 0.24.5
* Adjust logcheck to match against new log messages in 0.24.5
* Update standards version to 3.8.0 (no changes)
* Update changelog to reduce length of line to make lintian happy

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
        end
14
14
        prefix = "get" + space.to_s
15
15
        if id.is_a?(Integer)
16
 
            if id > 1000000
 
16
            if id > Puppet[:maximum_uid].to_i
17
17
                Puppet.err "Tried to get %s field for silly id %s" % [field, id]
18
18
                return nil
19
19
            end
40
40
        end
41
41
        if id.is_a?(Integer)
42
42
            integer = true
43
 
            if id > 1000000
 
43
            if id > Puppet[:maximum_uid].to_i
44
44
                Puppet.err "Tried to get %s field for silly id %s" % [field, id]
45
45
                return nil
46
46
            end