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

SFTP edit locally executable file will make the file non-executable #7522

Closed
Alexpham1130 opened this issue Nov 20, 2022 · 1 comment
Closed
Labels

Comments

@Alexpham1130
Copy link

Describe the problem:
Select SFTP and select executable file (shell, python, ....) and then Edit locally. After made change and saving, the change is reflected . However the edited file is no longer executable.

To Reproduce:

  • Create executable
% touch demo.sh
% chmod +x demo.sh 
% stat -c '%A %a %n' demo.sh 
-rwxrwxr-x 775 demo.sh
  • Make a chance and save

  • Observe the file property has been unexpectedly changed

% stat -c '%A %a %n' demo.sh 
-rw-rw-r-- 664 demo.sh
@molinacarlos
Copy link

+1

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