Owner changed after remote file save
As stated in subject, editing already existing file on remote sFTP and saving it, changes owner and group of that file to user that is used to establish sFTP connection.
If required, I can provide some debug/stack trace.
Tested with OS:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Tested with editor:
$ LANG=C; apt-cache policy sublime-text
sublime-text:
Installed: 3207
Candidate: 3207
Version table:
*** 3207 500
500 http://download.sublimetext.com apt/stable/ Packages
100 /var/lib/dpkg/status
These are:
- Original bug report from Bugzilla
- Launchpad bug report