mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-12-01 23:02:16 +00:00
e6f2e8a794b76dfab64e935707febc81d4469e0e
mock_chroot_uid ran mock's loader as root. mock itself loads its configuration as the user that sudo names, so with no chrootuid it builds as SUDO_UID. The helper reported uid 0, and mock_result_dirs gave the result directories to root. As root, the loader now builds the uid manager with mock's own setup_uid_manager() and loads the configuration through run_in_subprocess_without_privileges(), as mock main() does. make_traversable_path gives mode 0755 to the directories that it creates, because make_path applies the umask. mock_result_dirs and mockbuild-perl-packages.pl use it for the work and package directories. Directories that already exist keep their mode. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
Description
No description provided
Languages
Perl
79.3%
JavaScript
6.3%
C
3.9%
Shell
3.1%
SQLPL
2%
Other
5.2%