Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic Linux installer overwrites /usr/sbin if it's a symlink #888

Closed
3ship opened this issue Feb 1, 2022 · 1 comment
Closed

Generic Linux installer overwrites /usr/sbin if it's a symlink #888

3ship opened this issue Feb 1, 2022 · 1 comment
Labels

Comments

@3ship
Copy link

3ship commented Feb 1, 2022

In some Linux distros, like Archlinux and its offshoots, /usr/sbin is a symbolic link to /usr/bin. The generic Linux installer offered on the VeraCrypt website replaces this symlink with a directory during the installation.

Expected behavior

If the installer tries to copy files into a directory which is a symlink, the installer should copy the files into the linked directory instead.

Observed behavior

The symlink is removed and replaced with a directory. /usr/sbin directory is now empty, except for the file installed by the VeraCrypt installer. As a result programs which are called from /usr/sbin can no longer be started.

Steps to reproduce

  1. Tested on EndeavourOS
  2. Download the generic installers and execute e.g. veracrypt-1.25.4-setup-gui-x64

Additional comments

Archlinux and EndeavourOS provide their own albeit out-of-date version of VeraCrypt in the official repo, so this should only affect a small subset of users. But if the installer handles every symlink this way, then potentially other Linux distributions are affected as well.

@3ship 3ship added the bug label Feb 1, 2022
@idrassi idrassi closed this as completed in 3cf9364 Feb 5, 2022
@idrassi
Copy link
Member

idrassi commented Feb 5, 2022

Thank you for reporting this issue.
I have pushed a fix for it (3cf9364) and I'm preparing release of version 1.25.8 that will contain it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants