valentjn / ltex-ls

LTeX Language Server: LSP language server for LanguageTool :mag::heavy_check_mark: with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://valentjn.github.io/ltex
Mozilla Public License 2.0
764 stars 33 forks source link

Linux binary archive changes destination owner when extracted #300

Open ilkka opened 6 months ago

ilkka commented 6 months ago

Describe the bug The tarball contains an entry for .. When sudo extracted to e.g. opt, it changes ownership of opt to 1001:docker and permissions to 0700, presumably matching tmpDirPath in createBinaryArchives.py.

Steps to reproduce Steps to reproduce the behavior:

  1. Download the Linux binary archive
  2. Extract it with sudo into /opt
  3. Observe that ownership of /opt has changed

Expected behavior Ownership should not change.