Open oluceps opened 1 year ago
This is introduced by https://github.com/rapiz1/rathole/pull/122
In short, if only the file is watched, then sometimes vim does not trigger a inotify event.
Can you make a directory seperately for rathole config and set the corresponding permission?
Or at least report some error messages about the permission lacking...
It will be appreciated if you could open a PR for this.
Describe the bug This occurs when I try to start rathole with systemd, It failed to start unexpectedly and has no valid debug information about it:
To Reproduce Steps to reproduce the behavior:
config
, with permission 751 owned by user B.rathole
with config file which with full permission and owned by user A, in config dir.Run rathole by user A:
It exits directly, without reporting any available information related to permission lacking.
Bcz I found this, seems rathole needs read permission of the parent directory?
https://github.com/rapiz1/rathole/blob/9479b9a3a9c426a9ee04175cbd747b49a520d497/src/config_watcher.rs#L165
Is there a way to implement hot-reload without this permission? Or at least report some error messages about the permission lacking...
Environment: