Revision: 13849
http://sourceforge.net/p/skim-app/code/13849
Author: hofman
Date: 2023-12-06 23:45:50 +0000 (Wed, 06 Dec 2023)
Log Message:
-----------
append separator before loop
Modified Paths:
--------------
trunk/SkimNotes/SKNExtendedAttributeManager.m
Modified: trunk/SkimNotes/SKNExtendedAttributeManager.m
===================================================================
--- trunk/SkimNotes/SKNExtendedAttributeManager.m 2023-12-06 23:43:34 UTC
(rev 13848)
+++ trunk/SkimNotes/SKNExtendedAttributeManager.m 2023-12-06 23:45:50 UTC
(rev 13849)
@@ -480,7 +480,7 @@
// even if it's a plist, it may not be a dictionary or have the
key we're looking for
if (plist && [plist respondsToSelector:@selector(objectForKey:)]
&& [[plist objectForKey:_wrapperKey] boolValue]) {
- NSString *uniqueValue = [plist objectForKey:_uniqueKey];
+ NSString *uniqueValue = [[plist objectForKey:_uniqueKey]
stringByAppendingString:FRAGMENT_NAME_SEPARATOR];
NSUInteger i, numberOfFragments = [[plist
objectForKey:_fragmentsKey] unsignedIntegerValue];
NSString *name;
@@ -489,11 +489,11 @@
// remove the sub attributes
for (i = 0; i < numberOfFragments; i++) {
- name = [[NSString alloc] initWithFormat:@"%@%@%lu%@",
uniqueValue, FRAGMENT_NAME_SEPARATOR, (long)i, suffix];
+ name = [[NSString alloc] initWithFormat:@"%@%lu%@",
uniqueValue, (long)i, suffix];
const char *subAttrName = [name UTF8String];
status = removexattr(fsPath, subAttrName, xopts);
if (status == -1 && i == 0 && errno == ENOATTR && [suffix
length] > 0) {
- NSString *oldName = [[NSString alloc]
initWithFormat:@"%@%@%lu", uniqueValue, FRAGMENT_NAME_SEPARATOR, (long)i];
+ NSString *oldName = [[NSString alloc]
initWithFormat:@"%@%lu", uniqueValue, (long)i];
subAttrName = [oldName UTF8String];
status = removexattr(fsPath, subAttrName, xopts);
if (status != -1)
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