submitted-bind_umask2
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Mon, 28 Nov 2022 21:26:50 +0000 (21:26 +0000)
committerAurelien Jarno <aurel32@debian.org>
Mon, 28 Nov 2022 21:26:50 +0000 (21:26 +0000)
commit096be98060622a1ae9a8ef541ca5953ad8b835da
treee6a8a4dcb453d0d7eeb19b85e8a8c71271e8a4d6
parent6f444e6af6435e794789a2e91bd6d86268759511
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