ObjFW  Diff

Differences From Artifact [6f8d6d31cd]:

To Artifact [2272ddff5d]:


395
396
397
398
399
400
401
402
403






404
405
406
407
408
409
410
395
396
397
398
399
400
401


402
403
404
405
406
407
408
409
410
411
412
413
414







-
-
+
+
+
+
+
+







			[sandbox unveilPath: remainingArguments.firstObject
				permissions: @"r"];

		if (files.count > 0)
			for (OFString *path in files)
				[sandbox unveilPath: path permissions: @"wc"];
		else {
			OFString *path = (outputDir != nil
			    ? outputDir : OF_PATH_CURRENT_DIRECTORY);
			OFString *path = outputDir;

			if (path == nil)
				path = [[OFFileManager defaultManager]
				    currentDirectoryPath];

			/* We need 'r' to change the directory to it. */
			[sandbox unveilPath: path permissions: @"rwc"];
		}

		sandbox.allowsUnveil = false;
		[OFApplication of_activateSandbox: sandbox];
#endif