git: libc - Fix intermediate path elements if used in shm_open()
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Jun 8 14:26:49 PDT 2021
commit 31334a055e66508b41fde101e5a87c01326e8dc3
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/31334a055e66508b41fde101e5a87c01326e8dc3
--
DragonFly BSD source repository
More information about the Commits
mailing list