Skip to content

Commit

Permalink
jail: fix copy & paste error in parseOCIlinux()
Browse files Browse the repository at this point in the history
blobmsg entry OCI_LINUX_GIDMAPPINGS is wrongly applied as
uidmappings because of a copy & paste error. Fix that.

Coverity CID 1605920: Incorrect expression  (COPY_PASTE_ERROR)
Signed-off-by: Daniel Golle <[email protected]>
  • Loading branch information
dangowrt committed Jul 7, 2024
1 parent 1e411a5 commit a8cf548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jail/jail.c
Original file line number Diff line number Diff line change
Expand Up @@ -2215,7 +2215,7 @@ static int parseOCIlinux(struct blob_attr *msg)
}

if (tb[OCI_LINUX_UIDMAPPINGS]) {
res = parseOCIuidgidmappings(tb[OCI_LINUX_GIDMAPPINGS], 0);
res = parseOCIuidgidmappings(tb[OCI_LINUX_UIDMAPPINGS], 0);
if (res)
return res;
}
Expand Down

0 comments on commit a8cf548

Please sign in to comment.