]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
unshare: fix typo in --map-groups=subids map name [coverity scan]
authorKarel Zak <kzak@redhat.com>
Mon, 17 Mar 2025 12:55:06 +0000 (13:55 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Mar 2025 12:55:06 +0000 (13:55 +0100)
Addresses: https://github.com/util-linux/util-linux/pull/3121
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/unshare.c

index 0490c153294feee3846c3e4b420239f1fa666523..05db627bef587e879df5184bb4864a76e52f39cb 100644 (file)
@@ -1005,7 +1005,7 @@ int main(int argc, char *argv[])
                                insert_map_range(&groupmap,
                                                 read_subid_range(_PATH_SUBGID, real_euid, 0));
                        else if (!strcmp(optarg, "subids"))
-                               insert_map_range(&usermap,
+                               insert_map_range(&groupmap,
                                                 read_subid_range(_PATH_SUBGID, real_euid, 1));
                        else if (!strcmp(optarg, "all"))
                                read_kernel_map(&groupmap, _PATH_PROC_GIDMAP);