unioslo / tsdfx

File transfer utility
Other
4 stars 3 forks source link

Scanner should limit duration of group membership caching #111

Open petterreinholdtsen opened 8 years ago

petterreinholdtsen commented 8 years ago

The scan process used to discover new files to copy, will run with the group membership of the user owning the toplevel source directory of a source/target pair. This work well if the group membership is static. But if the group membership of the user changes, the tsdfx master process will not notice and will keep running with the group membership the user had when the daemon was started.

This should be changed to limit the duration of the group membership caching, or perhaps to reset group memberships every time the scan itself is started.