git: DragonFly_RELEASE_6_0 libc - Fix intermediate path elements if used in shm_open()
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Jun 14 14:14:13 PDT 2021
commit 82a2c1c580a4d8e7afcfac732b5f8abb2736fc04
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Tue Jun 8 14:25:01 2021 -0700
libc - Fix intermediate path elements if used in shm_open()
* Our shm_open() places the path relative to /var/run/shm, but if
the directory structure for miscellaneous prefixes (such as
"/tmp/blahblah", "/dev/shm/blahblah", etc) do not exist under
/var/run/shm then shm_open() fails when it should not.
* Change shm_open() to automatically create any intermediate directory
elements under /var/run/shm/ that are missing. The elements will
be created mode 1777.
* Fixes chromium-90 and any other packages that still use directory
prefixes in shm_open() calls.
Summary of changes:
lib/libc/gen/posixshm.c | 64 ++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 58 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/82a2c1c580a4d8e7afcfac732b5f8abb2736fc04
--
DragonFly BSD source repository
More information about the Commits
mailing list