]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
unshare: Fix doc comments
authorSean Anderson <seanga2@gmail.com>
Sat, 15 Jan 2022 16:29:26 +0000 (11:29 -0500)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Jan 2022 11:34:46 +0000 (12:34 +0100)
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 <seanga2@gmail.com>
Reported-by: Daniel Gerber <dg@atufi.org>
sys-utils/unshare.c

index 443358952ba0b1775f988f1ce0202472bab02f26..6723a34eb31ea3a7975e68f899133edfcf6e44e4 100644 (file)
@@ -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
  */