[Bug 1054477] [NEW] check-diskfree ignores fs with "media" anywhere in mount path

Martin Carpenter mcarpenter at free.fr
Sat Sep 22 07:46:43 UTC 2012


Public bug reported:

check-diskfree attempts to exlucde external automatically mounted disks
by removing mount paths containing "media/" from the output of df(1),
like so:

    df -klP |
    grep ^/ |
    grep -v /media/ |
    ...

If you have a standard filesystem mounted at, say, /mnt/media/press (any
mount point with media as the non-terminating component), then this will
be unintentionally excluded.

Suggested fix:

    42c42
    < grep -v /media/ |
    ---
    > grep -v ^/media/ |

** Affects: checksecurity (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to checksecurity in Ubuntu.
https://bugs.launchpad.net/bugs/1054477

Title:
  check-diskfree ignores fs with "media" anywhere in mount path

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/checksecurity/+bug/1054477/+subscriptions



More information about the Ubuntu-server-bugs mailing list