tags 430800 fixed-upstream
thanks

On Fri, Jun 29, 2007 at 10:39:06AM +0100, Colin Watson wrote:
> On Wed, Jun 27, 2007 at 07:54:40AM -0400, [EMAIL PROTECTED] wrote:
> > When I type mandb without any parameters it rewrites the
> > /var/cache/man/index.db file so that regular users (not root)
> > cannot get whatis answers from 'man -k line':
> > 
> > 278782 -rw-r-----  1 man  root 518153 Jun 27 07:41 index.db
> > 
> > 
> > 
> > I can fix it back up by typing 'mandb -c', but who would guess?
> > 
> > 278779 -rw-r--r--  1 man  root 553488 Jun 27 07:39 index.db
> 
> I tried to reproduce this here, but can't. Assuming you have the sudo
> package installed, could you please run this command:
> 
>   sudo -u man strace -f -s 1024 -o man.trace mandb; gzip -9 man.trace
> 
> ... and attach the resulting man.trace.gz file to this bug?

You never responded to this request, as far as I can see. My only guess
is that mandb somehow crashes immediately after renaming the temporary
database file into place (and yet I don't see any way that could happen
without generating an error message that you'd see). In order to try to
defend against this, I've applied the following fix upstream:

Mon Jan 14 13:59:18 GMT 2008  Colin Watson  <[EMAIL PROTECTED]>

        * src/mandb.c (xcopy): Set the new file's mode to DBMODE in order to
          try to defend against strange problems with databases being left
          world-unreadable (Debian bug #430800).

If you want me to do anything more, I'm going to need the debugging
output I asked for.

Thanks,

-- 
Colin Watson                                       [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to