A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/NVIDIA/enroot/commit/09ae4b2c18a18ed5ab34b7697006aa18697c4cec below:

Fix uint32 uid issue #195 (#197) · NVIDIA/enroot@09ae4b2 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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