submitted-bind_umask2
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 23 Apr 2024 16:23:00 +0000 (19:23 +0300)
committerAdrian Bunk <bunk@debian.org>
Tue, 23 Apr 2024 16:23:00 +0000 (19:23 +0300)
commit2f463c09e31bd52e7bf9b53e8d9215dd11516b79
tree26f611ef230e964a28a2ab31ca365b2eaffa2e25
parent1841eae2a3794e4066be4053687b726d9d9bda45
submitted-bind_umask2

2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>

Fix bind when umask is e.g. 0777.

        * sysdeps/mach/hurd/bind.c (__bind): Pass mode 0666 to __dir_mkfile
        instead of final mode, so that call __ifsock_getsockaddr can always
        succeed, before calling __file_chmod to fix the mode according to umask,
        before calling __dir_link to show the file.

Part of the original fix was committed, the other hasn't been yet, see Roland's
"Harumph" reply to
https://sourceware.org/ml/libc-alpha/2014-08/msg00408.html

Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name submitted-bind_umask2.diff
sysdeps/mach/hurd/bind.c