]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
newuidmap and newgidmap manpages: fix fd description
authorSerge Hallyn <serge@hallyn.com>
Tue, 9 Apr 2024 22:12:46 +0000 (17:12 -0500)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Wed, 10 Apr 2024 07:18:40 +0000 (09:18 +0200)
The manpages for newuidmap and newgidmap had a typo "[pid[" instead
of "[pid]".  They were also unclear about what the /proc/pid fd should
be.  Fix both.

Closes #977

Reported-by: igo95862@yandex.ru
Signed-off-by: Serge Hallyn <serge@hallyn.com>
man/newgidmap.1.xml
man/newuidmap.1.xml

index 9b7683ebae708a903e466a6c93b66a16ada77739..e5b770e89ed32dc05678fe9c4d43c0e8da0a0481 100644 (file)
       Instead of an integer process id, the first argument may be
       specified as <replaceable>fd:N</replaceable>, where the integer N
       is the file descriptor number for the calling process's opened
-      file for <filename>/proc/[pid[</filename>.  In this case,
-      <command>newgidmap</command> will use
+      file descriptor for the directory <filename>/proc/[pid]</filename>.
+      In this case, <command>newgidmap</command> will use
       <refentrytitle>openat</refentrytitle><manvolnum>2</manvolnum>
       to open the <filename>gid_map</filename> file under that
       directory, avoiding a TOCTTOU in case the process exits and
index ca917a7725ae51f0c0f741e0defb5c993a4e9ce7..7aed0d506bad67735edc0f1bb1a99afdeb443db0 100644 (file)
       Instead of an integer process id, the first argument may be
       specified as <replaceable>fd:N</replaceable>, where the integer N
       is the file descriptor number for the calling process's opened
-      file for <filename>/proc/[pid[</filename>.  In this case,
-      <command>newuidmap</command> will use
+      file descriptor for the directory <filename>/proc/[pid]</filename>.
+      In this case, <command>newuidmap</command> will use
       <refentrytitle>openat</refentrytitle><manvolnum>2</manvolnum>
       to open the <filename>uid_map</filename> file under that
       directory, avoiding a TOCTTOU in case the process exits and