ObjFW  Check-in [29ed8e6081]

Overview
Comment:ofhash: Allow user database reading

This is required as it now uses attributesOfItemAtPath:, which reads the
user database.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 29ed8e6081ecdef1a49a20e46a96d0715b65253195090190bcbfd4840289e864
User & Date: js on 2018-01-03 22:30:40
Other Links: manifest | tags
Context
2018-01-03
23:00
ofhttp: Fix file name not always being reset check-in: 8377e80ba9 user: js tags: trunk
22:30
ofhash: Allow user database reading check-in: 29ed8e6081 user: js tags: trunk
21:20
Fix Unicode table generator check-in: cb29882d9b user: js tags: trunk
Changes

Modified utils/ofhash/OFHash.m from [6eb6a3c457] to [f021cb30da].

80
81
82
83
84
85
86

87
88
89
90
91
92
93
	int exitStatus = 0;

#ifdef OF_HAVE_SANDBOX
	OFSandbox *sandbox = [[OFSandbox alloc] init];
	@try {
		[sandbox setAllowsStdIO: true];
		[sandbox setAllowsReadingFiles: true];


		[OFApplication activateSandbox: sandbox];
	} @finally {
		[sandbox release];
	}
#endif








>







80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
	int exitStatus = 0;

#ifdef OF_HAVE_SANDBOX
	OFSandbox *sandbox = [[OFSandbox alloc] init];
	@try {
		[sandbox setAllowsStdIO: true];
		[sandbox setAllowsReadingFiles: true];
		[sandbox setAllowsUserDatabaseReading: true];

		[OFApplication activateSandbox: sandbox];
	} @finally {
		[sandbox release];
	}
#endif