Menu

#5457 File name starting with dash causes an incomplete TAR when downloading

1.970
open
nobody
7
2021-03-01
2021-02-28
samsirry
No

When multiple files/directories are selected in the File Manager, AND one of them has a name starting with a dash "-":
Right-clicking and selecting download generates an incomplete tar.gz file. I.e. the tar file contains the selected files appearing before the one starting with a dash.
My assumption is that the file list is sent to the tar command without escaping of initial dashes, thus TAR is interpreting the file name as a command option.

Discussion

  • Ilia

    Ilia - 2021-03-01

    Hi,

    Yes, you're right. It's fixed here.

     
    🎉
    1
  • Ilia

    Ilia - 2021-03-01

    This seems to fail with BSD tar. Let me fix it so it works for both, GNU and BSD..

     

Log in to post a comment.