diff --git a/shmem/unix/shm.c b/shmem/unix/shm.c index 463dd941de..5ada669490 100644 --- a/shmem/unix/shm.c +++ b/shmem/unix/shm.c @@ -726,6 +726,20 @@ APR_PERMS_SET_IMPLEMENT(shm) if (fchmod(fd, apr_unix_perms2mode(perms))) return errno; + return APR_SUCCESS; +#elif APR_USE_SHMEM_MMAP_TMP + apr_shm_t *shm = (apr_shm_t *)theshm; + int fd; + + if (!shm->filename) + return APR_ENOTIMPL; + + if (chown(shm->filename, uid, gid)) + return errno; + + if (chmod(shm->filename, apr_unix_perms2mode(perms))) + return errno; + return APR_SUCCESS; #else return APR_ENOTIMPL;