On Mon, 16 Oct 2006 13:43:12 +0100
JRH <[EMAIL PROTECTED]> wrote:

> 
> Hi all,
> 
> I'm trying to creat a default slocate database, using the updatedb command.
> 
> In previous versions, I usually just typed in updatedb as root, and it got on 
> with it.
> 
> Now, with 2007, I type the command, and I get: 
> 
> [EMAIL PROTECTED] jrh]# updatedb
> /usr/bin/slocate: option requires an argument -- l
> [EMAIL PROTECTED] jrh]# updatedb --l
> slocate: fatal error: Security level must be 0 or 1.
> [EMAIL PROTECTED] jrh]#
> 

Ok, here's the actual problem: The command for updatedb is as follows:

/usr/bin/slocate -u -l"$SECURITY" $@

There are two problems

a) the default slocate -l flag can only be 0 or 1 but the environment
variable $SECURITY contains a number between 0 and 4(I think), so if
your security level as selected at install is not 0 or 1 then the
script will fail.

b) there is a syntax error - there should be a space between -l and
$SECURITY.

See: 'man slocate'

see: http://qa.mandriva.com/show_bug.cgi?id=26649

Cheers

____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to