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

Re: our broken man package



Joey Hess wrote:
> I'm concerned with some breakage in the man program. Here is an example:
> 
> joey@gumdrop:~>chmod 700 .
> joey@gumdrop:~>cp /usr/share/man/man1/ls.1.gz .
> joey@gumdrop:~>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):
> 
> root@gumdrop:~>cp /bin/more bin/mymore
> root@gumdrop:~>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/:

root@dragon:~>man man 
man: can't create a temporary filename: Permission denied

So incredibly broken..

-- 
see shy jo



Reply to: