On 2017/07/04 22:08, lumidify wrote:
> Hello,
> The www/lynx port has execution of external programs disabled. However,
> trying to use features which spawn external programs just causes it to crash.
> If I understand correctly, it is not supposed to call external programs,
> but it also shouldn't just crash if you try to.
> 
> Steps to reproduce (or at least one way):
> 1. Add 'DOWNLOADER:Open with feh:feh %s' to /etc/lynx.cfg (replace
> 'feh' with any image viewer).
> 2. Run 'lynx https://www.openbsd.org/images/rack2009-s.png' (for example)
> and press 'd' to download the image.
> 3. Choose 'Open with feh'; lynx will crash with 'Abort trap (core dumped)'.
> 
> - lumidify
> 

The lynx port uses pledge(7) to disallow certain operations, including
spawning another process. If those operations are attempted anyway,
it *is* supposed to crash.

It would be a little nicer if the operation just failed rather than
crashing the process, however the end result would still be "can't
do what you want", so the simplest way to do that is to avoid setting
DOWNLOADER: to open the file.

Reply via email to