mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
31282ad8e7
Summary: When running `sudo mkscratch path /home/markamendoza`, the folder `/data/users/markamendoza/scratch/homeZmarkamendoza` will be created, including all parents that did not already exist. All these new directories will be created with owner = root. Anticipating this kind of call, `mkscratch` already goes in and manually modifies the owner of the leaf directory (e.g. `/data/users/markamendoza/scratch/homeZmarkamendoza`), **but will not do so for any of the parent folders it created**. This is normally not a problem, as long as `/data/users/markamendoza/scratch/` already exists. If it doesn't then these directories are created with the wrong ownership, which causes problems if we (for example) call `mkscratch` again, without sudo. This diff remedies this by calling the same `set_file_owner` function (that's already called on the leaf directory) on all parents that were created by `mkscratch` Reviewed By: chadaustin Differential Revision: D27378153 fbshipit-source-id: 26c40f4ca478cacf9117093c7b70cbedd679cea6 |
||
---|---|---|
.. | ||
eden_apfs_mount_helper | ||
hgmain | ||
scm_daemon | ||
scratch | ||
utils |