Joey Hess wrote: > I'm concerned with some breakage in the man program. Here is an example: > > [EMAIL PROTECTED]:~>chmod 700 . > [EMAIL PROTECTED]:~>cp /usr/share/man/man1/ls.1.gz . > [EMAIL PROTECTED]:~>man -l ./ls.1.gz > man: can't chdir to /home/joey: Permission denied > man: ./ls.1.gz: Permission denied > > Another example (only works as root): > > [EMAIL PROTECTED]:~>cp /bin/more bin/mymore > [EMAIL PROTECTED]:~>PAGER=~/bin/mymore man man > sh: /root/bin/mymore: Permission denied > man: command exited with status 32256: /bin/gzip -dc > '/var/cache/man/cat1/man.1.gz' | { export MAN_PN LESS; MAN_PN='man(1)'; > LESS="$LESS\$-Pm\:\$ix8mPm Manual page $MAN_PN ?ltline %lt?L/%L.:byte > %bB?s/%s..?e (END):?pB %pB\\%.."; /root/bin/mymore; }
Here's one more real fun one. This only works if you are root and /root is mode 700 and $TMP is set to /root/tmp/: [EMAIL PROTECTED]:~>man man man: can't create a temporary filename: Permission denied So incredibly broken.. -- see shy jo