~ubuntu-branches/ubuntu/warty/net-snmp/warty-security

« back to all changes in this revision

Viewing changes to mibs/smistrip

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-13 12:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040913120621-m42a4emgwp1oori0
Tags: 5.1.1-2ubuntu3
* snmpd.default: run as user 'snmp' by default, not root (Warty bug #1151)
* snmpd.postinst:
  - create system user snmp
  - removed superfluous version check which could have never been executed
* snmpd.postrm:
  - delete user snmp on purge
  - quoted comparison of $1 (it could be empty)

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        next
62
62
    }
63
63
 
64
 
    /^[ \t]*(::=|DESCRIPTION|SYNTAX|(MAX-|MIN-|)ACCESS|STATUS|REFERENCE|INDEX|AUGMENTS|DEFVAL|UNITS|DISPLAY|")/ {
 
64
    /^[ \t]*\(::=|DESCRIPTION|SYNTAX|(MAX-|MIN-|)ACCESS|STATUS|REFERENCE|INDEX|AUGMENTS|DEFVAL|UNITS|DISPLAY|\)/ {
65
65
        if (collect)
66
66
            if (line[n-1] == "") n--
67
67
    }