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

« back to all changes in this revision

Viewing changes to agent/mibgroup/mibII/interfaces.c

  • 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:
1598
1598
        struct ifnet   *nnew;
1599
1599
        char           *stats, *ifstart = line;
1600
1600
 
 
1601
        /* Ignore interfaces with no statistics. */
 
1602
        if (strstr(line, "No statistics available."))
 
1603
            continue;
 
1604
 
1601
1605
        if (line[strlen(line) - 1] == '\n')
1602
1606
            line[strlen(line) - 1] = '\0';
1603
1607
 
1631
1635
                                               &coll) != 5)) {
1632
1636
            if ((scan_line_to_use == scan_line_2_2)
1633
1637
                && !strstr(line, "No statistics available"))
1634
 
                snmp_log(LOG_ERR,
 
1638
                snmp_log(LOG_DEBUG,
1635
1639
                         "/proc/net/dev data format error, line ==|%s|",
1636
1640
                         line);
1637
1641
            continue;