[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: man-db strange behaviour



Adrian Bridgett <adrian.bridgett@poboxes.com> writes:

> On Mon, Mar 02, 1998 at 08:47:19PM -0500, Steve Dunham wrote:
> > fpolacco@icenet.fi writes:
> > 
> > > On Mon, Mar 02, 1998 at 02:37:34PM +0100, Jens Ritter wrote:
> > > > 
> > > > man: can't open /tmp/zman29072aaa: Bad file descriptor
> > > > No manual entry for sane-mustek
> > > > 
> > > > As it works for root I thought it is a permission problem:
> > > > unsolved [/home/jens] $ ls -dl /tmp
> > > > drwxrwxrwt   4 root     root         1024 Mar  2 14:31 /tmp

> > > I have another report with the same error message, where the problem
> > > seems to be in /tmp on a separate partition.
> > > Is this also your case?
> > 
> > This is happening on my machine at work and it only has one partition.
> > 
> > It is not happening on my machine at home which has release 60 of the
> > package.

After about an hour of playing around, I've narrowed down the problem
(and I know why so few people have experienced it).  At work the login
scripts set the umask to 077, the debian default is a very friendly
002.  

(I didn't realize the was the problem until I noticed that man worked
when I did a "su - postgress", but not under "su postgress".)

Here is the debugging output of man for one of these failed sessions.
Let me know if you need more help.  (setting umask to 077 will make
the problem appear - in fact setting it to 060 will do the trick,
although both 020 and 040 work fine.)


# man -d znew

using exec /usr/bin/pager -s as pager
found mandatory man directory /usr/man
found mandatory man directory /usr/X11R6/man
found mandatory man directory /usr/local/man
found manpath map /bin --> /usr/man
found manpath map /usr/bin --> /usr/man
found manpath map /sbin --> /usr/man
found manpath map /usr/sbin --> /usr/man
found manpath map /usr/local/bin --> /usr/local/man
found manpath map /usr/local/sbin --> /usr/local/man
found manpath map /usr/X11R6/bin --> /usr/X11R6/man
found manpath map /usr/bin/X11 --> /usr/X11R6/man
found manpath map /usr/games --> /usr/man
found manpath map /opt/bin --> /opt/man
found manpath map /opt/sbin --> /opt/man
found global mandir /usr/man/de mapped to catdir /var/catman/de
found global mandir /usr/man/it mapped to catdir /var/catman/it
found global mandir /usr/man mapped to catdir /var/catman
found global mandir /usr/local/man mapped to catdir /var/catman/local
found global mandir /usr/X11R6/man mapped to catdir /var/catman/X11R6

adding mandatory man directories

adding /usr/man to manpath
adding /usr/X11R6/man to manpath
adding /usr/local/man to manpath
adding /usr/man to manpathlist
adding /usr/X11R6/man to manpathlist
adding /usr/local/man to manpathlist
*manpath search path* = /usr/man:/usr/X11R6/man:/usr/local/man
regain_effective_privs()
searching in /usr/man, section 1
Succeeded in opening /var/catman/index.bt O_RDONLY
trying a db located file.
sec. ext:  1
section:   1
comp. ext: gz
id:        A
st_mtime   886283144
pointer:   -
whatis:    recompress .Z files to .gz files

Checking physical location: /usr/man/man1/znew.1.gz

ult_src: File /usr/man/man1/znew.1.gz
drop_effective_privs()
regain_effective_privs()
The following command done with dropped privs
umask 022; /bin/gzip -dc /usr/man/man1/znew.1.gz > /tmp/zman01804aaa
man: can't open /tmp/zman01804aaa: Bad file descriptor
dbdelete_wrapper =znew =
Attempting delete of znew(1) entry.
searching in /usr/X11R6/man, section 1
Succeeded in opening /var/catman/X11R6/index.bt O_RDONLY
searching in /usr/local/man, section 1
Succeeded in opening /var/catman/local/index.bt O_RDONLY
searching in /usr/man, section n
searching in /usr/X11R6/man, section n
searching in /usr/local/man, section n
searching in /usr/man, section l
searching in /usr/X11R6/man, section l
searching in /usr/local/man, section l
searching in /usr/man, section 8
searching in /usr/X11R6/man, section 8
searching in /usr/local/man, section 8
searching in /usr/man, section 3
searching in /usr/X11R6/man, section 3
searching in /usr/local/man, section 3
searching in /usr/man, section 2
searching in /usr/X11R6/man, section 2
searching in /usr/local/man, section 2
searching in /usr/man, section 5
searching in /usr/X11R6/man, section 5
searching in /usr/local/man, section 5
searching in /usr/man, section 4
searching in /usr/X11R6/man, section 4
searching in /usr/local/man, section 4
searching in /usr/man, section 9
searching in /usr/X11R6/man, section 9
searching in /usr/local/man, section 9
searching in /usr/man, section 6
searching in /usr/X11R6/man, section 6
searching in /usr/local/man, section 6
searching in /usr/man, section 7
searching in /usr/X11R6/man, section 7
searching in /usr/local/man, section 7
free_hashtab: 3 entries, 3 (100%) unique
update_db(): 888975729
Testing /usr/man for new files
update_db(): 888959962
Testing /usr/X11R6/man for new files
update_db(): 888959873
Testing /usr/local/man for new files
free_hashtab: 0 entries, 0 (0%) unique
No manual entry for znew
drop_effective_privs()
remove("/tmp/zman01804aaa")
regain_effective_privs()
close_catalogue()


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: