* Issue in man page proc_pid_fd.5
@ 2024-11-17 10:46 Helge Kreutzmann
2024-11-17 11:24 ` Alejandro Colomar
0 siblings, 1 reply; 8+ messages in thread
From: Helge Kreutzmann @ 2024-11-17 10:46 UTC (permalink / raw)
To: alx; +Cc: mario.blaettermann, linux-man
Without further ado, the following was found:
Issue: Inode -> I<inode>?
"type:[inode]\n"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Issue in man page proc_pid_fd.5
@ 2024-11-17 10:46 Helge Kreutzmann
2024-11-17 11:30 ` Alejandro Colomar
0 siblings, 1 reply; 8+ messages in thread
From: Helge Kreutzmann @ 2024-11-17 10:46 UTC (permalink / raw)
To: alx; +Cc: mario.blaettermann, linux-man
Without further ado, the following was found:
Issue: When executing this commands, sudo prompts me for my password
"$B< echo test | sudo -u nobody cat>\n"
"test\n"
"$B< echo test | sudo -u nobody cat /proc/self/fd/0>\n"
"cat: /proc/self/fd/0: Permission denied\n"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Issue in man page proc_pid_fd.5
2024-11-17 10:46 Issue in man page proc_pid_fd.5 Helge Kreutzmann
@ 2024-11-17 11:24 ` Alejandro Colomar
2024-11-17 16:35 ` G. Branden Robinson
0 siblings, 1 reply; 8+ messages in thread
From: Alejandro Colomar @ 2024-11-17 11:24 UTC (permalink / raw)
To: Helge Kreutzmann; +Cc: mario.blaettermann, linux-man
[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]
[CC += Branden]
Hi Helge,
On Sun, Nov 17, 2024 at 10:46:22AM GMT, Helge Kreutzmann wrote:
> Without further ado, the following was found:
>
> Issue: Inode -> I<inode>?
>
> "type:[inode]\n"
I've applied the following patch:
commit f3ac823f7501910031855c1f6e640f0dc5e295bb (HEAD -> contrib)
Author: Alejandro Colomar <alx@kernel.org>
Date: Sun Nov 17 12:23:48 2024 +0100
proc_pid_fd.5: ffix
Reported-by: Helge Kreutzmann <debian@helgefjell.de>
Cc: "G. Branden Robinson" <branden@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
diff --git a/man/man5/proc_pid_fd.5 b/man/man5/proc_pid_fd.5
index 2e3341ad8..903063e82 100644
--- a/man/man5/proc_pid_fd.5
+++ b/man/man5/proc_pid_fd.5
@@ -24,7 +24,7 @@ .SH DESCRIPTION
.IP
.in +4n
.EX
-type:[inode]
+.IB type :[ inode ]
.EE
.in
.IP
@@ -50,7 +50,7 @@ .SH DESCRIPTION
.IP
.in +4n
.EX
-.RI anon_inode: file-type
+.BI anon_inode: file-type
.EE
.in
.IP
If anyone has comments, please let me know.
Have a lovely day!
Alex
--
<https://www.alejandro-colomar.es/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Issue in man page proc_pid_fd.5
2024-11-17 10:46 Helge Kreutzmann
@ 2024-11-17 11:30 ` Alejandro Colomar
2024-11-17 11:52 ` Helge Kreutzmann
0 siblings, 1 reply; 8+ messages in thread
From: Alejandro Colomar @ 2024-11-17 11:30 UTC (permalink / raw)
To: Helge Kreutzmann; +Cc: mario.blaettermann, linux-man
[-- Attachment #1: Type: text/plain, Size: 660 bytes --]
On Sun, Nov 17, 2024 at 10:46:22AM GMT, Helge Kreutzmann wrote:
> Without further ado, the following was found:
>
> Issue: When executing this commands, sudo prompts me for my password
And what's the problem?
Cheers,
Alex
>
> "$B< echo test | sudo -u nobody cat>\n"
> "test\n"
> "$B< echo test | sudo -u nobody cat /proc/self/fd/0>\n"
> "cat: /proc/self/fd/0: Permission denied\n"
alx@debian:~$ sudo echo
[sudo] password for alx:
alx@debian:~$ echo test | sudo -u nobody cat
test
alx@debian:~$ echo test | sudo -u nobody cat /proc/self/fd/0
cat: /proc/self/fd/0: Permission denied
--
<https://www.alejandro-colomar.es/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Issue in man page proc_pid_fd.5
2024-11-17 11:30 ` Alejandro Colomar
@ 2024-11-17 11:52 ` Helge Kreutzmann
2024-11-17 11:58 ` Alejandro Colomar
0 siblings, 1 reply; 8+ messages in thread
From: Helge Kreutzmann @ 2024-11-17 11:52 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: mario.blaettermann, linux-man
[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]
Hello Alejandro,
Am Sun, Nov 17, 2024 at 12:30:28PM +0100 schrieb Alejandro Colomar:
> On Sun, Nov 17, 2024 at 10:46:22AM GMT, Helge Kreutzmann wrote:
> > Without further ado, the following was found:
> >
> > Issue: When executing this commands, sudo prompts me for my password
>
> And what's the problem?
From reading the example, this is not expected. But if this is
implied/clear, then I can mark this accordingly in our file.
> > "$B< echo test | sudo -u nobody cat>\n"
> > "test\n"
> > "$B< echo test | sudo -u nobody cat /proc/self/fd/0>\n"
> > "cat: /proc/self/fd/0: Permission denied\n"
>
> alx@debian:~$ sudo echo
> [sudo] password for alx:
>
> alx@debian:~$ echo test | sudo -u nobody cat
> test
> alx@debian:~$ echo test | sudo -u nobody cat /proc/self/fd/0
> cat: /proc/self/fd/0: Permission denied
Greetings
Helge
--
Dr. Helge Kreutzmann debian@helgefjell.de
Dipl.-Phys. http://www.helgefjell.de/debian.php
64bit GNU powered gpg signed mail preferred
Help keep free software "libre": http://www.ffii.de/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Issue in man page proc_pid_fd.5
2024-11-17 11:52 ` Helge Kreutzmann
@ 2024-11-17 11:58 ` Alejandro Colomar
0 siblings, 0 replies; 8+ messages in thread
From: Alejandro Colomar @ 2024-11-17 11:58 UTC (permalink / raw)
To: Helge Kreutzmann; +Cc: mario.blaettermann, linux-man
[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]
Hi Helge,
On Sun, Nov 17, 2024 at 11:52:09AM GMT, Helge Kreutzmann wrote:
> Hello Alejandro,
> Am Sun, Nov 17, 2024 at 12:30:28PM +0100 schrieb Alejandro Colomar:
> > On Sun, Nov 17, 2024 at 10:46:22AM GMT, Helge Kreutzmann wrote:
> > > Without further ado, the following was found:
> > >
> > > Issue: When executing this commands, sudo prompts me for my password
> >
> > And what's the problem?
>
> From reading the example, this is not expected. But if this is
> implied/clear, then I can mark this accordingly in our file.
sudo(8) asks for a password depending on having run sudo(8) before, and
depending on its configuration.
I think we can omit it, but I'm open to being convinced otherwise.
Cheers,
Alex
>
> > > "$B< echo test | sudo -u nobody cat>\n"
> > > "test\n"
> > > "$B< echo test | sudo -u nobody cat /proc/self/fd/0>\n"
> > > "cat: /proc/self/fd/0: Permission denied\n"
> >
> > alx@debian:~$ sudo echo
> > [sudo] password for alx:
> >
> > alx@debian:~$ echo test | sudo -u nobody cat
> > test
> > alx@debian:~$ echo test | sudo -u nobody cat /proc/self/fd/0
> > cat: /proc/self/fd/0: Permission denied
>
> Greetings
>
> Helge
--
<https://www.alejandro-colomar.es/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Issue in man page proc_pid_fd.5
2024-11-17 11:24 ` Alejandro Colomar
@ 2024-11-17 16:35 ` G. Branden Robinson
2024-11-17 17:26 ` Alejandro Colomar
0 siblings, 1 reply; 8+ messages in thread
From: G. Branden Robinson @ 2024-11-17 16:35 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: Helge Kreutzmann, mario.blaettermann, linux-man
[-- Attachment #1: Type: text/plain, Size: 2336 bytes --]
Hi Alex,
At 2024-11-17T12:24:56+0100, Alejandro Colomar wrote:
> [CC += Branden]
What do you need from me here? I'll take a guess and review your patch.
> On Sun, Nov 17, 2024 at 10:46:22AM GMT, Helge Kreutzmann wrote:
> > Without further ado, the following was found:
> >
> > Issue: Inode -> I<inode>?
> >
> > "type:[inode]\n"
>
> I've applied the following patch:
>
> commit f3ac823f7501910031855c1f6e640f0dc5e295bb (HEAD -> contrib)
> Author: Alejandro Colomar <alx@kernel.org>
> Date: Sun Nov 17 12:23:48 2024 +0100
>
> proc_pid_fd.5: ffix
>
> Reported-by: Helge Kreutzmann <debian@helgefjell.de>
> Cc: "G. Branden Robinson" <branden@debian.org>
> Signed-off-by: Alejandro Colomar <alx@kernel.org>
>
> diff --git a/man/man5/proc_pid_fd.5 b/man/man5/proc_pid_fd.5
> index 2e3341ad8..903063e82 100644
> --- a/man/man5/proc_pid_fd.5
> +++ b/man/man5/proc_pid_fd.5
> @@ -24,7 +24,7 @@ .SH DESCRIPTION
> .IP
> .in +4n
> .EX
> -type:[inode]
> +.IB type :[ inode ]
This markup looks okay to me, if "type" and "inode" are parameterized
and ":[" and "]" are literal.
Personally, I would use `IR` instead of `IB` since the example is of
_output_, not user input.
groff_man_style(7):
Use bold for literal portions of syntax synopses, for
command‐line options in running text, and for literals that
are major topics of the subject under discussion; for
example, this page uses bold for macro, string, and register
names. In an .EX/.EE example of interactive I/O (such as a
shell session), set only user input in bold.
But (a) the exhibit here is more an example of file content than I/O per
se, and (b) I don't recall if you have an overriding style rule for the
man-pages project.
As ever, clarity is the first principle. If the example is clear either
way, the choice of typeface for the literal parts of it is a matter of
polish, and not likely a barrier to the reader's comprehension.
> .EE
> .in
> .IP
> @@ -50,7 +50,7 @@ .SH DESCRIPTION
> .IP
> .in +4n
> .EX
> -.RI anon_inode: file-type
> +.BI anon_inode: file-type
> .EE
> .in
> .IP
>
> If anyone has comments, please let me know.
Regards,
Branden
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Issue in man page proc_pid_fd.5
2024-11-17 16:35 ` G. Branden Robinson
@ 2024-11-17 17:26 ` Alejandro Colomar
0 siblings, 0 replies; 8+ messages in thread
From: Alejandro Colomar @ 2024-11-17 17:26 UTC (permalink / raw)
To: G. Branden Robinson; +Cc: Helge Kreutzmann, mario.blaettermann, linux-man
[-- Attachment #1: Type: text/plain, Size: 2830 bytes --]
Hi Branden,
On Sun, Nov 17, 2024 at 10:35:47AM GMT, G. Branden Robinson wrote:
> Hi Alex,
>
> At 2024-11-17T12:24:56+0100, Alejandro Colomar wrote:
> > [CC += Branden]
>
> What do you need from me here? I'll take a guess and review your patch.
The guess was good. :)
> > On Sun, Nov 17, 2024 at 10:46:22AM GMT, Helge Kreutzmann wrote:
> > > Without further ado, the following was found:
> > >
> > > Issue: Inode -> I<inode>?
> > >
> > > "type:[inode]\n"
> >
> > I've applied the following patch:
> >
> > commit f3ac823f7501910031855c1f6e640f0dc5e295bb (HEAD -> contrib)
> > Author: Alejandro Colomar <alx@kernel.org>
> > Date: Sun Nov 17 12:23:48 2024 +0100
> >
> > proc_pid_fd.5: ffix
> >
> > Reported-by: Helge Kreutzmann <debian@helgefjell.de>
> > Cc: "G. Branden Robinson" <branden@debian.org>
> > Signed-off-by: Alejandro Colomar <alx@kernel.org>
> >
> > diff --git a/man/man5/proc_pid_fd.5 b/man/man5/proc_pid_fd.5
> > index 2e3341ad8..903063e82 100644
> > --- a/man/man5/proc_pid_fd.5
> > +++ b/man/man5/proc_pid_fd.5
> > @@ -24,7 +24,7 @@ .SH DESCRIPTION
> > .IP
> > .in +4n
> > .EX
> > -type:[inode]
> > +.IB type :[ inode ]
>
> This markup looks okay to me, if "type" and "inode" are parameterized
> and ":[" and "]" are literal.
>
> Personally, I would use `IR` instead of `IB` since the example is of
> _output_, not user input.
Hmmm, interesting. I'll amend the patch, since it's not yet pushed to
the master branch.
>
> groff_man_style(7):
> Use bold for literal portions of syntax synopses, for
> command‐line options in running text, and for literals that
> are major topics of the subject under discussion; for
> example, this page uses bold for macro, string, and register
> names. In an .EX/.EE example of interactive I/O (such as a
> shell session), set only user input in bold.
>
> But (a) the exhibit here is more an example of file content than I/O per
> se, and (b) I don't recall if you have an overriding style rule for the
> man-pages project.
(b) I don't.
>
> As ever, clarity is the first principle. If the example is clear either
> way, the choice of typeface for the literal parts of it is a matter of
> polish, and not likely a barrier to the reader's comprehension.
Since either way it's clear, I'll take the Roman.
Cheers,
Alex
>
> > .EE
> > .in
> > .IP
> > @@ -50,7 +50,7 @@ .SH DESCRIPTION
> > .IP
> > .in +4n
> > .EX
> > -.RI anon_inode: file-type
> > +.BI anon_inode: file-type
> > .EE
> > .in
> > .IP
> >
> > If anyone has comments, please let me know.
>
> Regards,
> Branden
--
<https://www.alejandro-colomar.es/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-11-17 17:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-17 10:46 Issue in man page proc_pid_fd.5 Helge Kreutzmann
2024-11-17 11:24 ` Alejandro Colomar
2024-11-17 16:35 ` G. Branden Robinson
2024-11-17 17:26 ` Alejandro Colomar
-- strict thread matches above, loose matches on Subject: below --
2024-11-17 10:46 Helge Kreutzmann
2024-11-17 11:30 ` Alejandro Colomar
2024-11-17 11:52 ` Helge Kreutzmann
2024-11-17 11:58 ` Alejandro Colomar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox