Package: man-db
Version: 2.5.9-4
Severity: minor
Tags: patch

Hi,

/etc/cron.daily/man-db has this snippet:

# expunge old catman pages which have not been read in a week
if [ -d /var/cache/man ]; then
  cd /
  if ! dpkg-statoverride --list /var/cache/man >/dev/null 2>&1; then
    chown -R man /var/cache/man || true         # just in case
  fi
  …

The chown bit there will needlessly set the owner to man, even if all
the files already have the correct owner.

Could you instead do this?

  find /var/cache/man ! -owner man -print0 | xargs -r0 chown man || true

It's a small optimisation, but it would eliminate useless I/Os.

thanks,
iustin

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-ruru0 (SMP w/4 CPU cores)
Locale: LANG=ro_RO.UTF-8, LC_CTYPE=ro_RO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages man-db depends on:
ii  bsdmainutils            8.2.2            collection of more utilities from
ii  debconf [debconf-2.0]   1.5.38           Debian configuration management sy
ii  dpkg                    1.15.8.10        Debian package management system
ii  groff-base              1.21-5           GNU troff text-formatting system (
ii  libc6                   2.11.2-13        Embedded GNU C Library: Shared lib
ii  libgdbm3                1.8.3-9          GNU dbm database routines (runtime
ii  libpipeline1            1.2.0-1          pipeline manipulation library
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

man-db recommends no packages.

Versions of packages man-db suggests:
ii  chromium [www-brow 10.0.648.204~r79063-1 Chromium browser
ii  galeon [www-browse 2.0.7-2.1+b1          GNOME web browser for advanced use
pn  groff              <none>                (no description available)
ii  iceweasel [www-bro 4.0-2                 Web browser based on Firefox
ii  less               436-1                 pager program similar to more
ii  lynx-cur [www-brow 2.8.8dev.8-1          Text-mode WWW Browser with NLS sup
ii  w3m [www-browser]  0.5.3-2               WWW browsable pager with excellent

-- debconf information:
* man-db/install-setuid: false
  man-db/auto-update: true

Attachment: signature.asc
Description: Digital signature

Reply via email to