Preserve chmod permission after editing .stignore via WebUI

Hi,

I’m living with this cosmetic problem since a long time and now I’d like to ask kindly if it could be improved.

Reproducer:

  • chmod 0755 /path/to/folder/.stignore
  • Edit ignore patterns for “folder” from Syncthing’s Web UI
  • Syncthing always resets permission to 0600

image

What I like to suggest:

  • Keep the file permission if the user changed it. e.g. 0755 in my case.

Thank you.

Kind regards,

Catfriend1

That might even qualify as a bug: Our atomic writer simply doesn’t care about permissions of the final product. In any case please file an issue on github :slight_smile:

:+1:

See chmod permission after editing .stignore via WebUI not preserved · Issue #6886 · syncthing/syncthing · GitHub

Thanks for https://github.com/syncthing/syncthing/pull/6885 !