ObjFW  Check-in [5923676ca6]

Overview
Comment:ofarc: Fix extracting from stdin on macOS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5923676ca6f9796b31e93bab661c5357d60c7d6906f7a84b7770fa4cef8c9e90
User & Date: js on 2024-05-12 15:48:09
Other Links: manifest | tags
Context
2024-05-13
21:08
Fix workaround for missing blx on ARM check-in: e933229b5a user: js tags: trunk
2024-05-12
15:48
ofarc: Fix extracting from stdin on macOS check-in: d207384006 user: js tags: 1.1
15:48
ofarc: Fix extracting from stdin on macOS check-in: 5923676ca6 user: js tags: trunk
13:23
Increase ObjFWRT library patch version check-in: fcee07f80f user: js tags: trunk
Changes

Modified utils/ofarc/OFArc.m from [f2ee58a5d5] to [f0ee4f03f2].

478
479
480
481
482
483
484

485
486

487
488
489
490
491
492
493

494
495
496
497
498
499
500

		archive = [self openArchiveWithIRI: IRI
					      type: type
					      mode: mode
					  encoding: encoding];

#ifdef OF_MACOS

		@try {
			OFString *attributeName = @"com.apple.quarantine";


			_quarantine = [[[OFFileManager defaultManager]
			    extendedAttributeDataForName: attributeName
					     ofItemAtIRI: IRI] retain];
		} @catch (OFGetItemAttributesFailedException *e) {
			if (e.errNo != /*ENOATTR*/ 93)
				@throw e;

		}
#endif

		if (outputDir != nil) {
			OFFileManager *fileManager =
			    [OFFileManager defaultManager];








>
|
|
>

|
|
|
|
|
|
>







478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503

		archive = [self openArchiveWithIRI: IRI
					      type: type
					      mode: mode
					  encoding: encoding];

#ifdef OF_MACOS
		if ([IRI.scheme isEqual: @"file"]) {
			@try {
				OFString *attributeName =
				    @"com.apple.quarantine";

				_quarantine = [[[OFFileManager defaultManager]
				    extendedAttributeDataForName: attributeName
						     ofItemAtIRI: IRI] retain];
			} @catch (OFGetItemAttributesFailedException *e) {
				if (e.errNo != /*ENOATTR*/ 93)
					@throw e;
			}
		}
#endif

		if (outputDir != nil) {
			OFFileManager *fileManager =
			    [OFFileManager defaultManager];