Displaying 2 results from an estimated 2 matches for "cfstringname".
2009 Jan 21
3
Rsync with OS X 10.3
...luding
this code on fsreffrompath function:
= if(verbose > 3)
= fprintf(stderr, "name=%s\n",startOfName);
+ nameLength=strlen(startOfName);
+ strcpy(name, startOfName);
+ while(index<nameLength)
+ {
+ if(name[index]==':')
+ name[index]='/';
+ index++;
+ }
= cfStringName=CFStringCreateWithCString(NULL, name,
kCFStringEncodingUTF8);
= if(cfStringName==NULL)
Putting this initialisation:
= char parentPath[MAXPATHLEN+1], name[MAXNAMLEN+1];
+ unsigned int index=0, nameLength;
= means code that already exist on file.
+ means new code to be inserted in this context....
2009 Jan 20
0
rsync 3.0.4 patches for 10.3
...ut I believe you!
You can modify my patch like this:
+ if(verbose > 3)
+ fprintf(stderr, "name=%s\n",startOfName);
nameLength=strlen(startOfName);
strcpy(name, startOfName);
while(index<nameLength)
{
if(name[index]==':')
name[index]='/';
index++;
}
+ cfStringName=CFStringCreateWithCString(NULL, name,
kCFStringEncodingUTF8);
+ if(cfStringName==NULL)
Putting this initialisation:
+ char parentPath[MAXPATHLEN+1], name[MAXNAMLEN+1];
unsigned int index=0, nameLength;
It will need another buffer, but we would need anyway. We can't
replace chars on CFS...