File group of updated file not kept when resume support is enabled

Advertisement

sz5000
Joined:
Posts:
2

File group of updated file not kept when resume support is enabled

WinSCP Version 6.1.1

How to reproduce:
  • Remote server has a file, owner=root and group=www-data
  • Log in as root
  • Upload a new version of this file from local to remote. Ensure that the resume support is enabled which is normally the case for larger files. My file has 101KB.
  • After the new file is uploaded, file group has changed to root
So, the file group of the updated file is not kept here! This is a serious bug.

Reply with quote

Advertisement

sz5000
Joined:
Posts:
2

Hmm, I understand.
after the original file is deleted and temporary file is renamed to the original file name, you lose all attributes of the original file (such as owner and group) except for basic permissions
Wouldn't it make sense to do the following?
  • read attributes before deleting the file
  • set the attributes to the temporary file (warn if this does not work)
  • rename the temporary file to the original file name
A warning message would also be very helpful if attributes such as owner and group cannot be transferred, because a production system can become faulty due to incorrect attributes.

What do you think?

Reply with quote

Advertisement

You can post new topics in this forum