submitted-bind_umask2
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Wed, 1 May 2019 17:24:19 +0000 (18:24 +0100)
committerAurelien Jarno <aurel32@debian.org>
Wed, 1 May 2019 17:24:19 +0000 (18:24 +0100)
commit3c3853a4754f46196ef4d1b180134e4000ed037c
tree1a2e74a96fb97d7e29622b8ec959404a24568aca
parente160e9fcea6a3f07ea3c02aa230c279d04ad7562
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