Typo in cron script, incorrect parameter to nice

Bug #148456 reported by Lars Ljung on 2007-10-03
Affects Status Importance Assigned to Milestone
slocate (Ubuntu)
Kees Cook

Bug Description

Binary package hint: slocate

In /etc/cron.daily/slocate nice is called with "nice -n {$NICE:-10} ..." which gives this error message: "nice: invalid adjustment `{10:-10}'". It should probably read "${NICE:-10}" as in find.notslocate.

This is for slocate 3.1-1ubuntu2

Related branches

Kees Cook (kees) wrote :

Thanks! Yes, I ran into this as well. A fixed version will be published shortly.

Changed in slocate:
assignee: nobody → keescook
importance: Undecided → High
status: New → Fix Committed
Kees Cook (kees) wrote :

slocate (3.1-1ubuntu3) gutsy; urgency=low

  * debian/cron.daily: fix small typo in shell variable usage (LP: #148456).

 -- Kees Cook <email address hidden> Wed, 03 Oct 2007 11:02:47 -0700

Changed in slocate:
status: Fix Committed → Fix Released
Rudd-O (rudd-o) wrote :

I can confirm the bug, will test the update shortly.

Thanks for making slocate run nicely. The next thing that slocate should do is use posix_fadvise to have it not destroy the vfs cache and working set.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers