From: Sean Anderson Date: Sat, 15 Jan 2022 16:29:26 +0000 (-0500) Subject: unshare: Fix doc comments X-Git-Tag: v2.38-rc1~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8bf585f7bbba3ccbe3784f1e4c618dafdd29d54e;p=thirdparty%2Futil-linux.git unshare: Fix doc comments Several doc comments use the wrong terminology, or have mismatches descriptions. Fix them. Fixes: ff5dc96eb ("unshare: Add options to map blocks of user/group IDs") Signed-off-by: Sean Anderson Reported-by: Daniel Gerber --- diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c index 443358952b..6723a34eb3 100644 --- a/sys-utils/unshare.c +++ b/sys-utils/unshare.c @@ -359,8 +359,8 @@ static gid_t get_group(const char *s, const char *err) /** * struct map_range - A range of IDs to map - * @outer: First ID inside the namespace - * @inner: First ID outside the namespace + * @outer: First ID mapped on the outside of the namespace + * @inner: First ID mapped on the inside of the namespace * @count: Length of the inside and outside ranges * * A range of uids/gids to map using new[gu]idmap. @@ -393,9 +393,9 @@ static int uint_to_id(const char *name, size_t sz) /** * get_map_range() - Parse a mapping range from a string - * @s: A string of the format upper,lower,count + * @s: A string of the format outer,inner,count * - * Parse a string of the form upper,lower,count into a new mapping range. + * Parse a string of the form outer,inner,count into a new mapping range. * * Return: A new &struct map_range */