Re: error while changing file’s mode when saving file with ACL permissions

2024-04-19 Thread Michael Albinus
Tijs Mallaerts writes: > Hi Michael, Hi Tijs, > I've tested the patch and now it's possible again to edit the remote > files with tramp after changing the option > tramp-warn-only-if-setting-file-attributes-fail to t. Thanks for the feedback. I've pushed the patch to the repositories, will

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-19 Thread Tijs Mallaerts
Hi Michael, I've tested the patch and now it's possible again to edit the remote files with tramp after changing the option tramp-warn-only-if-setting-file-attributes-fail to t. Thank you very much! Tijs Op do 18 apr 2024 om 21:30 schreef Michael Albinus : > Tijs Mallaerts writes: > > > Hi

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-18 Thread Michael Albinus
Tijs Mallaerts writes: > Hi Michael, Hi Tijs, > Ok I see, a user option would be perfect in that case. Please try the appended patch. Since it changes a macro, you must recompile both tramp.el and tramp-sh.el (in that order). Then try your test, again, setting the new user option

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-18 Thread Tijs Mallaerts
Hi Michael, Ok I see, a user option would be perfect in that case. Thank you! Tijs Op do 18 apr 2024 om 09:17 schreef Michael Albinus : > Tijs Mallaerts writes: > > > Hi Michael, > > Hi Tijs, > > > Would it be an idea to check first if the user can run the chmod > > command before calling the

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-18 Thread Michael Albinus
Tijs Mallaerts writes: > Hi Michael, Hi Tijs, > Would it be an idea to check first if the user can run the chmod > command before calling the tramp-sh-handle-set-file-modes function? Too much hassle, because this would be checked for everybody, with performance degradation. What about a user

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-18 Thread Tijs Mallaerts
Hi Michael, As I understand it, only the file owner can run the chmod command on the file, but my user is not the owner in this case. When I skip the call to tramp-sh-handle-set-file-modes editing the file seems to work correctly. Would it be an idea to check first if the user can run the chmod

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-17 Thread Michael Albinus
Tijs Mallaerts writes: > Hi Michael, Hi Tijs, > This is the output of the command: > > chmod: changing permissions of ‘/var/www/aaa/index.htm’: Operation not > permitted > tramp_exit_status 1 This doesn't tell us much. Hmm. Could you try to find out, why chmod on that machine does not have

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-17 Thread Michael Albinus
Tijs Mallaerts writes: > Hi Michael, Hi Tijs, [Pls keep keep tramp-devel@gnu.org in Cc, for the archives] > Here is the output of the tramp debug buffer: Well, let's see. (Next time pls send it as attachment, sending it as plain text adds line formatting, which makes it hard to read) >

Re: error while changing file’s mode when saving file with ACL permissions

2024-04-17 Thread Michael Albinus
Tijs Mallaerts writes: Hi Tijs, > Is it possible to configure tramp so it becomes possible to edit files > that are set up with ACL permissions? Currently when trying to save > such a file the following error is shown: > > tramp-error: Error while changing file’s mode Tramp doesn't do

error while changing file’s mode when saving file with ACL permissions

2024-04-17 Thread Tijs Mallaerts
Is it possible to configure tramp so it becomes possible to edit files that are set up with ACL permissions? Currently when trying to save such a file the following error is shown: tramp-error: Error while changing file’s mode Thank you! Tijs