Revision: 15603
http://sourceforge.net/p/skim-app/code/15603
Author: hofman
Date: 2025-07-04 14:49:11 +0000 (Fri, 04 Jul 2025)
Log Message:
-----------
return error when writing wwrapper fails
Modified Paths:
--------------
trunk/SkimNotes/SKNExtendedAttributeManager.m
Modified: trunk/SkimNotes/SKNExtendedAttributeManager.m
===================================================================
--- trunk/SkimNotes/SKNExtendedAttributeManager.m 2025-07-04 09:36:47 UTC
(rev 15602)
+++ trunk/SkimNotes/SKNExtendedAttributeManager.m 2025-07-04 14:49:11 UTC
(rev 15603)
@@ -370,10 +370,13 @@
NSParameterAssert([wrapperData length] < MAX_XATTR_LENGTH &&
[wrapperData length] > 0);
// we don't want to split this dictionary (or compress it)
- if (setxattr(fsPath, attrName, [wrapperData bytes], [wrapperData
length], 0, xopts))
+ int status = setxattr(fsPath, attrName, [wrapperData bytes],
[wrapperData length], 0, xopts);
+ if(status == -1) {
+ if(error) *error = [self xattrError:errno forPath:path];
success = NO;
- else
+ } else {
success = YES;
+ }
// now split the original data value into multiple segments
NSString *name;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit