+2
-2
lines changedFilter options
+2
-2
lines changed Original file line number Diff line number Diff line change
@@ -95,11 +95,11 @@ unshare_userns(bool remap_root)
95
95
char *uidmap = NULL, *gidmap = NULL;
96
96
int rv = -1;
97
97
98
-
if (asprintf(&gidmap, "%d %d 1", remap_root ? 0 : getegid(), getegid()) < 0) {
98
+
if (asprintf(&gidmap, "%u %u 1", remap_root ? 0 : getegid(), getegid()) < 0) {
99
99
gidmap = NULL;
100
100
goto err;
101
101
}
102
-
if (asprintf(&uidmap, "%d %d 1", remap_root ? 0 : geteuid(), geteuid()) < 0) {
102
+
if (asprintf(&uidmap, "%u %u 1", remap_root ? 0 : geteuid(), geteuid()) < 0) {
103
103
uidmap = NULL;
104
104
goto err;
105
105
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4