Re: s6-fdholder-getdumpc fails with 'Protocol error' (EPROTO)

From: Guillermo <gdiazhartusch_at_gmail.com>
Date: Sun, 6 Aug 2017 15:02:37 -0300

2017-08-06 8:47 GMT-03:00 Laurent Bercot:
>
> Fixed in the latest s6 git. It was a stupid typo.
> I'll carve a new release some time this month.

Thank you, that worked.

This also affected s6-fdholder-transferdumpc, and, for the record, the
issue fixed by commit ebb6b00bf66828c5a2587dd2cd44f8810e01e00b (which
also worked) affected GNU libc-based operating systems as well, and
manifested as s6-mkfifodir not being able to create publically
accessible FIFO directories, so an s6 bugfix release seems in order
indeed.

* http://git.skarnet.org/cgi-bin/cgit.cgi/s6/commit/?id=ebb6b00bf66828c5a2587dd2cd44f8810e01e00b

It turns out GNU libc also has an unsigned gid_t

* https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=posix/sys/types.h;hb=HEAD

#ifndef __gid_t_defined
typedef __gid_t gid_t;
# define __gid_t_defined
#endif

* https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=posix/bits/types.h;hb=HEAD

#define __U32_TYPE unsigned int
//...
#if __WORDSIZE == 32
//...
#elif __WORDSIZE == 64
//...
# define __STD_TYPE typedef
#else
# error
#endif
#include <bits/typesizes.h> /* Defines __*_T_TYPE macros. */
//...
__STD_TYPE __GID_T_TYPE __gid_t; /* Type of group identifications. */

* https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=bits/typesizes.h;hb=HEAD

#define __GID_T_TYPE __U32_TYPE

G.
Received on Sun Aug 06 2017 - 18:02:37 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC