cron job should not run if gnu locate is not selected alternative

Bug #310259 reported by Steve Dodd on 2008-12-21
Affects Status Importance Assigned to Milestone
findutils (Ubuntu)

Bug Description

Binary package hint: locate

Using Hardy 8.04.1:

I've just noticed that both locate (GNU locate from findutils) and mlocate run their own copies of updatedb out of cron. The only reason I have GNU locate installed is because dlocate requires it, and dlocate doesn't use the main locate database, so there is no reason to update it.

Could the cron job (/etc/cron.daily/locate) check to see if /usr/bin/updatedb points to the findutils version, and abort if not? Suggested patch attached.

Steve Dodd (anarchetic) wrote :
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers