diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2025-05-09 12:18:15 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-09 14:18:15 +0200 |
| commit | e44aae0c2064240f335b0e7706599ed0487726da (patch) | |
| tree | 2bfc979f2368cb4a796d5f5d4c6d36e43820e806 /hyprpm/src/helpers/Sys.cpp | |
| parent | fcb6f936ea8b39ec42f5979e55c7aa4a060d2f30 (diff) | |
hyprpm: switch to numeric owner/group after f8bbe5124c00 (#10345)
On BSDs "root" is in "wheel" group. Instead of enumerating platforms
or probing "wheel" explicitly use numeric value for the superuser.
$ truss hyprpm add <url>
[...]
read(5,"install: unknown group root\n",1023) = 28 (0x1c)
[...]
[ERR] ✖ Failed to write plugin state
Diffstat (limited to 'hyprpm/src/helpers/Sys.cpp')
| -rw-r--r-- | hyprpm/src/helpers/Sys.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hyprpm/src/helpers/Sys.cpp b/hyprpm/src/helpers/Sys.cpp index 58741caf..e7ac8854 100644 --- a/hyprpm/src/helpers/Sys.cpp +++ b/hyprpm/src/helpers/Sys.cpp @@ -153,7 +153,7 @@ bool NSys::root::install(const std::string& what, const std::string& where, cons if (!std::ranges::all_of(mode, [](const char& c) { return c >= '0' && c <= '9'; })) return false; - CProcess proc(subin(), {"install", "-m" + mode, "-o", "root", "-g", "root", what, where}); + CProcess proc(subin(), {"install", "-m" + mode, "-o", "0", "-g", "0", what, where}); return proc.runSync() && proc.exitCode() == 0; } |
