search for: namelength

Displaying 2 results from an estimated 2 matches for "namelength".

Did you mean: name_length
2009 Jan 21
3
Rsync with OS X 10.3
...ent for the FSMakeFSRefUnicode function. As you can see, we are looking for the most efficient way to do it. If you want to be sure it works, modify /lib/sysxattrs.c including 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: =...
2009 Jan 20
0
rsync 3.0.4 patches for 10.3
...t about converting path separators. As other functions take POSIX paths, it's weird for me that FSMakeFSRefUnicode needs a HFS like name and not a POSIX one. But 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 pa...