fs_path.h
22.6 KB
-
repo: allow users running with sudo to access their repositories · ed24b8ba
In the ownership checks implemented for CVE-2022-24765, we disallowed users to access their own repositories when running with `sudo`. Examine the `SUDO_UID` environment variable and allow users running with `sudo`. This matches git's behavior.
Edward Thomson committed