public class FileOwnerFixer
This class is used to record files and directories created before switching
user and group in SetRendezvousUID. It only has effect if the server is associated
to a UnixMachine.
Paths are recorded with one of the addPath
methods. A path is considered for recording if it is a new file or directory
and if it has not yet been recorded. If one or more parents of the path are new,
we record the earliest new ancestor instead of the given path.
When the user switch occurs, the fixFileOwnership method is called by
SetRendezvousUID. We changes the owner and group of all recorded paths. If a
path is a directory, we do a deep walk of the directory tree to change ownership
of all its descendants.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.