loose file and shared memory permissions on Android and iPhone

This commit is contained in:
vanhauser-thc
2024-12-11 10:36:31 +01:00
parent f5a672f9d8
commit 50e2f9d46c
3 changed files with 211 additions and 199 deletions

View File

@ -28,7 +28,7 @@ MAN_PATH ?= $(PREFIX)/share/man/man8
BUILD_DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+%Y-%m-%d" 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+%Y-%m-%d" 2>/dev/null || date -u "+%Y-%m-%d")
VERSION = $(shell grep '^$(HASH)define VERSION ' ./config.h | cut -d '"' -f2)
VERSION = $(shell grep '^ *$(HASH)define VERSION ' ./config.h | cut -d '"' -f2)
SYS = $(shell uname -s)

View File

@ -5,7 +5,7 @@
### Version ++4.31a (dev)
- your PR?
- loose file and shared memory permissions on Android and iPhone
### Version ++4.30c (release)

View File

@ -52,6 +52,18 @@
/* Default file permission umode when creating files (default: 0600) */
#define DEFAULT_PERMISSION 0600
#ifdef __APPLE__
#include <TargetConditionals.h>
#if TARGET_OS_IOS
#undef DEFAULT_PERMISSION
#define 0666
#endif
#endif
#ifdef __ANDROID__
#undef DEFAULT_PERMISSION
#define 0666
#endif
/* SkipDet's global configuration */
#define MINIMAL_BLOCK_SIZE 64