All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] shutdown.2: POSIX compliant since version 3.7-rc1
@ 2015-02-26 10:38 saulery-GANU6spQydw
       [not found] ` <1424947131-4034-1-git-send-email-saulery-GANU6spQydw@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: saulery-GANU6spQydw @ 2015-02-26 10:38 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Stéphane Aulery

From: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>

Signed-off-by: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>
---
 man2/shutdown.2 | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/man2/shutdown.2 b/man2/shutdown.2
index ab39cfd..2174de3 100644
--- a/man2/shutdown.2
+++ b/man2/shutdown.2
@@ -102,14 +102,11 @@ respectively, and are defined in
 .I <sys/socket.h>
 since glibc-2.1.91.
 .SH BUGS
-As currently implemented,
-checks for the validity of
-.I how
-are done in domain-specific code, and not all domains perform these checks.
-.\" FIXME .
-.\" https://bugzilla.kernel.org/show_bug.cgi?id=47111
-Most notably, UNIX domain sockets simply ignore invalid values;
-this may change in the future.
+This implementation is POSIX compliant since version 3.7-rc1. Previously, UNIX
+domain and DECnet sockets simply ignored invalid values of
+.IR how ,
+due to a domain-specific code. Applications that used invalid values to
+circumvent this lack should be corrected.
 .SH SEE ALSO
 .BR connect (2),
 .BR socket (2),
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [patch] shutdown.2: POSIX compliant since version 3.7-rc1
       [not found]     ` <CAKgNAkhO47NwYqECEiw2zap5LSzi1z-HiSja6GjSCseaP_jb2A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-02-26 12:25       ` Stéphane Aulery
  2015-02-27  0:21       ` saulery-GANU6spQydw
  1 sibling, 0 replies; 7+ messages in thread
From: Stéphane Aulery @ 2015-02-26 12:25 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man

Le jeudi 26 février 2015 à 01:28:48, Michael Kerrisk (man-pages) a écrit :
> 
> These patches of yours are good, but lack info in commit messages
> explaining why the change is being made, pointers bugzilla entries,
> etc. Could you amend this patch and resend?

Yes, I will do that.

-- 
Stéphane Aulery
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [patch] shutdown.2: POSIX compliant since version 3.7-rc1
       [not found] ` <1424947131-4034-1-git-send-email-saulery-GANU6spQydw@public.gmane.org>
@ 2015-02-26 12:28   ` Michael Kerrisk (man-pages)
       [not found]     ` <CAKgNAkhO47NwYqECEiw2zap5LSzi1z-HiSja6GjSCseaP_jb2A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-02-26 12:28 UTC (permalink / raw)
  To: saulery; +Cc: linux-man

Hi Stéphane

These patches of yours are good, but lack info in commit messages
explaining why the change is being made, pointers bugzilla entries,
etc. Could you amend this patch and resend?

Thanks,

Michael
to

On 26 February 2015 at 11:38,  <saulery-GANU6spQydw@public.gmane.org> wrote:
> From: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>
>
> Signed-off-by: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>
> ---
>  man2/shutdown.2 | 13 +++++--------
>  1 file changed, 5 insertions(+), 8 deletions(-)
>
> diff --git a/man2/shutdown.2 b/man2/shutdown.2
> index ab39cfd..2174de3 100644
> --- a/man2/shutdown.2
> +++ b/man2/shutdown.2
> @@ -102,14 +102,11 @@ respectively, and are defined in
>  .I <sys/socket.h>
>  since glibc-2.1.91.
>  .SH BUGS
> -As currently implemented,
> -checks for the validity of
> -.I how
> -are done in domain-specific code, and not all domains perform these checks.
> -.\" FIXME .
> -.\" https://bugzilla.kernel.org/show_bug.cgi?id=47111
> -Most notably, UNIX domain sockets simply ignore invalid values;
> -this may change in the future.
> +This implementation is POSIX compliant since version 3.7-rc1. Previously, UNIX
> +domain and DECnet sockets simply ignored invalid values of
> +.IR how ,
> +due to a domain-specific code. Applications that used invalid values to
> +circumvent this lack should be corrected.
>  .SH SEE ALSO
>  .BR connect (2),
>  .BR socket (2),
> --
> 2.1.4
>



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [patch] shutdown.2: POSIX compliant since version 3.7-rc1
@ 2015-02-26 17:07 saulery-GANU6spQydw
  0 siblings, 0 replies; 7+ messages in thread
From: saulery-GANU6spQydw @ 2015-02-26 17:07 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Stéphane Aulery

From: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>

Synchronizing the manpage with the new POSIX compliant behavior of shutdown().
A warning message is kept to indicate possible problems with the old behavior
of UNIX domain sockets.

See bug report: https://bugzilla.kernel.org/show_bug.cgi?id=47111

Signed-off-by: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>
---
 man2/shutdown.2 | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/man2/shutdown.2 b/man2/shutdown.2
index ab39cfd..2174de3 100644
--- a/man2/shutdown.2
+++ b/man2/shutdown.2
@@ -102,14 +102,11 @@ respectively, and are defined in
 .I <sys/socket.h>
 since glibc-2.1.91.
 .SH BUGS
-As currently implemented,
-checks for the validity of
-.I how
-are done in domain-specific code, and not all domains perform these checks.
-.\" FIXME .
-.\" https://bugzilla.kernel.org/show_bug.cgi?id=47111
-Most notably, UNIX domain sockets simply ignore invalid values;
-this may change in the future.
+This implementation is POSIX compliant since version 3.7-rc1. Previously, UNIX
+domain and DECnet sockets simply ignored invalid values of
+.IR how ,
+due to a domain-specific code. Applications that used invalid values to
+circumvent this lack should be corrected.
 .SH SEE ALSO
 .BR connect (2),
 .BR socket (2),
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [patch] shutdown.2: POSIX compliant since version 3.7-rc1
       [not found]     ` <CAKgNAkhO47NwYqECEiw2zap5LSzi1z-HiSja6GjSCseaP_jb2A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2015-02-26 12:25       ` Stéphane Aulery
@ 2015-02-27  0:21       ` saulery-GANU6spQydw
       [not found]         ` <1424996516-10470-1-git-send-email-saulery-GANU6spQydw@public.gmane.org>
  1 sibling, 1 reply; 7+ messages in thread
From: saulery-GANU6spQydw @ 2015-02-27  0:21 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Stéphane Aulery

From: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>

Synchronizing the manpage with the new POSIX compliant behavior of shutdown().
A warning message is kept to indicate possible problems with the old behavior
of UNIX domain sockets.

See bug report: https://bugzilla.kernel.org/show_bug.cgi?id=47111

Signed-off-by: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>
---
 man2/shutdown.2 | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/man2/shutdown.2 b/man2/shutdown.2
index ab39cfd..2174de3 100644
--- a/man2/shutdown.2
+++ b/man2/shutdown.2
@@ -102,14 +102,11 @@ respectively, and are defined in
 .I <sys/socket.h>
 since glibc-2.1.91.
 .SH BUGS
-As currently implemented,
-checks for the validity of
-.I how
-are done in domain-specific code, and not all domains perform these checks.
-.\" FIXME .
-.\" https://bugzilla.kernel.org/show_bug.cgi?id=47111
-Most notably, UNIX domain sockets simply ignore invalid values;
-this may change in the future.
+This implementation is POSIX compliant since version 3.7-rc1. Previously, UNIX
+domain and DECnet sockets simply ignored invalid values of
+.IR how ,
+due to a domain-specific code. Applications that used invalid values to
+circumvent this lack should be corrected.
 .SH SEE ALSO
 .BR connect (2),
 .BR socket (2),
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [patch] shutdown.2: POSIX compliant since version 3.7-rc1
       [not found]         ` <1424996516-10470-1-git-send-email-saulery-GANU6spQydw@public.gmane.org>
@ 2015-04-21 13:18           ` Michael Kerrisk (man-pages)
       [not found]             ` <55364E18.4060005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-04-21 13:18 UTC (permalink / raw)
  To: saulery-GANU6spQydw
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Stéphane,

On 02/27/2015 01:21 AM, saulery-GANU6spQydw@public.gmane.org wrote:
> From: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>
> 
> Synchronizing the manpage with the new POSIX compliant behavior of shutdown().
> A warning message is kept to indicate possible problems with the old behavior
> of UNIX domain sockets.
> 
> See bug report: https://bugzilla.kernel.org/show_bug.cgi?id=47111
>
> Signed-off-by: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>
> ---
>  man2/shutdown.2 | 13 +++++--------
>  1 file changed, 5 insertions(+), 8 deletions(-)
> 
> diff --git a/man2/shutdown.2 b/man2/shutdown.2
> index ab39cfd..2174de3 100644
> --- a/man2/shutdown.2
> +++ b/man2/shutdown.2
> @@ -102,14 +102,11 @@ respectively, and are defined in
>  .I <sys/socket.h>
>  since glibc-2.1.91.
>  .SH BUGS
> -As currently implemented,
> -checks for the validity of
> -.I how
> -are done in domain-specific code, and not all domains perform these checks.
> -.\" FIXME .
> -.\" https://bugzilla.kernel.org/show_bug.cgi?id=47111
> -Most notably, UNIX domain sockets simply ignore invalid values;
> -this may change in the future.
> +This implementation is POSIX compliant since version 3.7-rc1. Previously, UNIX
> +domain and DECnet sockets simply ignored invalid values of
> +.IR how ,
> +due to a domain-specific code. Applications that used invalid values to
> +circumvent this lack should be corrected.
>  .SH SEE ALSO
>  .BR connect (2),
>  .BR socket (2),

I think the above patch probably goes into a little too much detail.
I think few people care about DECnet these days, so I'd prefer not
to clutter the page with mention of it.

I instead applied the patch below. Thanks for spotting that this kernel
bug had been fixed!

Cheers,

Michael

--- a/man2/shutdown.2
+++ b/man2/shutdown.2
@@ -102,14 +102,16 @@ respectively, and are defined in
 .I <sys/socket.h>
 since glibc-2.1.91.
 .SH BUGS
-As currently implemented,
-checks for the validity of
+Checks for the validity of
 .I how
-are done in domain-specific code, and not all domains perform these checks.
-.\" FIXME .
+are done in domain-specific code,
+and before Linux 3.7 not all domains performed these checks.
 .\" https://bugzilla.kernel.org/show_bug.cgi?id=47111
-Most notably, UNIX domain sockets simply ignore invalid values;
-this may change in the future.
+Most notably, UNIX domain sockets simply ignored invalid values.
+This problem was fixed for UNIX domain sockets
+.\" commit fc61b928dc4d72176cf4bd4d30bf1d22e599aefc
+.\" and for DECnet sockets in commit 46b66d7077b89fb4917ceef19b3f7dd86055c94a
+in Linux 3.7.
 .SH SEE ALSO
 .BR connect (2),
 .BR socket (2),

 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [patch] shutdown.2: POSIX compliant since version 3.7-rc1
       [not found]             ` <55364E18.4060005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2015-04-21 23:01               ` Stéphane Aulery
  0 siblings, 0 replies; 7+ messages in thread
From: Stéphane Aulery @ 2015-04-21 23:01 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Michael,

Le mardi 21 avril 2015 à 03:18:16, Michael Kerrisk (man-pages) a écrit :
> 
> On 02/27/2015 01:21 AM, saulery-GANU6spQydw@public.gmane.org wrote:
> > From: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>
> > 
> > Synchronizing the manpage with the new POSIX compliant behavior of shutdown().
> > A warning message is kept to indicate possible problems with the old behavior
> > of UNIX domain sockets.
> > 
> > See bug report: https://bugzilla.kernel.org/show_bug.cgi?id=47111
> >
> > Signed-off-by: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>
> > ---
> >  man2/shutdown.2 | 13 +++++--------
> >  1 file changed, 5 insertions(+), 8 deletions(-)
> > 
> > diff --git a/man2/shutdown.2 b/man2/shutdown.2
> > index ab39cfd..2174de3 100644
> > --- a/man2/shutdown.2
> > +++ b/man2/shutdown.2
> > @@ -102,14 +102,11 @@ respectively, and are defined in
> >  .I <sys/socket.h>
> >  since glibc-2.1.91.
> >  .SH BUGS
> > -As currently implemented,
> > -checks for the validity of
> > -.I how
> > -are done in domain-specific code, and not all domains perform these checks.
> > -.\" FIXME .
> > -.\" https://bugzilla.kernel.org/show_bug.cgi?id=47111
> > -Most notably, UNIX domain sockets simply ignore invalid values;
> > -this may change in the future.
> > +This implementation is POSIX compliant since version 3.7-rc1. Previously, UNIX
> > +domain and DECnet sockets simply ignored invalid values of
> > +.IR how ,
> > +due to a domain-specific code. Applications that used invalid values to
> > +circumvent this lack should be corrected.
> >  .SH SEE ALSO
> >  .BR connect (2),
> >  .BR socket (2),
> 
> I think the above patch probably goes into a little too much detail.
> I think few people care about DECnet these days, so I'd prefer not
> to clutter the page with mention of it.
> 
> I instead applied the patch below. Thanks for spotting that this kernel
> bug had been fixed!

Chic, even a bug in my list of conquests. Thank you Michael.

> Cheers,

-- 
Stéphane Aulery
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-21 23:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-26 10:38 [patch] shutdown.2: POSIX compliant since version 3.7-rc1 saulery-GANU6spQydw
     [not found] ` <1424947131-4034-1-git-send-email-saulery-GANU6spQydw@public.gmane.org>
2015-02-26 12:28   ` Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAkhO47NwYqECEiw2zap5LSzi1z-HiSja6GjSCseaP_jb2A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-02-26 12:25       ` Stéphane Aulery
2015-02-27  0:21       ` saulery-GANU6spQydw
     [not found]         ` <1424996516-10470-1-git-send-email-saulery-GANU6spQydw@public.gmane.org>
2015-04-21 13:18           ` Michael Kerrisk (man-pages)
     [not found]             ` <55364E18.4060005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-04-21 23:01               ` Stéphane Aulery
  -- strict thread matches above, loose matches on Subject: below --
2015-02-26 17:07 saulery-GANU6spQydw

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.