Hi Paul,
Thanks for the patch, and sorry it's taken a while to get to review it.
As it stands, the patch changes the current behaviour in a negative
way. I guess your intention is to allow the target directory to be not
owned by the prosody user (I'm curious why).
The current code checks that the directory is owned by prosody,
writable by prosody, and also that it is *not* writable by any other
user.
The current proposed patch removes the first and last checks, and just
ensures it is writable by the current user. This also makes the
warning message incorrect.
And for the larger picture, there are some related issues:
-
https://issues.prosody.im/1217
-
https://issues.prosody.im/999
We have been discussing various solutions to make the feature more
robust and less surprising (including removing some features if
needed).
I'm curious to hear your thoughts, and exactly how you're using it
that makes the current code inadequate. That will help with figuring
out the best solution.
Regards,
Matthew