ObjFW  Check-in [d207384006]

Overview
Comment:ofarc: Fix extracting from stdin on macOS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 1.1
Files: files | file ages | folders
SHA3-256: d207384006612634c0d4656cb0f39a6338e9e6bce1d8403a7c3d9c276d8f0380
User & Date: js on 2024-05-12 15:48:21
Other Links: branch diff | manifest | tags
Context
2024-05-22
19:24
Fix workaround for missing blx on ARM check-in: cc826fdb6d user: js tags: 1.1
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:21
Set version to 1.1.3 check-in: 0b57785ef2 user: js tags: 1.1, 1.1.3-release
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];