Menu

#264 "Don't execute text files" ignored when clicking on a link

v1.0_(example)
closed-fixed
nobody
None
5
2022-12-30
2021-12-31
No

Expected behavior:
With "Don't execute text files" checked in xfe's preferences, I would expect that double-clicking on an executable text file (e.g., shell script) or double-clicking a link to an executable text file would open the text file for editing.

Actual behavior:
With "Don't execute text files" checked, double-clicking on an executable text file opens it for editing as expected. However, double-clicking on a link to an executable text file causes the text file to be executed rather than opened. This is very unexpected behavior.

Steps to reproduce:

  1. Check "Don't execute text files"
  2. $ printf "!/bin/sh\ntouch $HOME/hello.txt" >tester
  3. $ chmod a+x tester
  4. $ ln -s tester tester2
  5. Double-click on tester2. Nothing is opened for editing. The script is executed and $HOME/hello.txt is created.

Xfe version: 1.44 x86_64 on Tiny Core Linux 12.

Discussion

  • Roland Baudin

    Roland Baudin - 2022-12-30
    • status: open --> closed-fixed
     
  • Roland Baudin

    Roland Baudin - 2022-12-30

    This is fixed in version 1.45.

     

Log in to post a comment.

MongoDB Logo MongoDB