search for: fsreffrompath

Displaying 3 results from an estimated 3 matches for "fsreffrompath".

2008 Feb 25
0
Fwd: Making rsync compile under Mac OS X 10.3.9 with extended attributes
...ls. > > I'm attaching the verbose log of the operations before the error. > And the patch, of course! > > Vitorio > > recv_files(Src/60-bsd-flags/file-with-flags) > got file_sum > sys_llistxattr(Src/60-bsd-flags/.file-with-flags.CqNyUX, 0x2800400, > 1024); > fsreffrompath(Src/60-bsd-flags/.file-with-flags.CqNyUX, 0xbfffcc00); > PWD=/Volumes/Dst/80-rsync-test > name=.file-with-flags.CqNyUX > list lenght=21, list content: > com.apple.FinderInfo > sys_lsetxattr(Src/60-bsd-flags/.file-with-flags.CqNyUX, > com.apple.FinderInfo, 32); > value= > f...
2009 Jan 21
3
Rsync with OS X 10.3
...;) in the filesystem and we need to reconvert them to slashes in order to pass them correctly as argument 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=CFStringCreateWithCStr...
2009 Jan 20
0
rsync 3.0.4 patches for 10.3
...ts it to a slash "/" when storing the filename on disk. > > If you pass a filename from a Posix API to a Carbon API you must > convert any colons to slashes. So I added code to do this and it > solved my problems. I added code to substitute colons for slashes > inside fsreffrompath() in lib/sysxattrs.c > > I hesitate to provide a patch because I am really unsure if I did it > well. I copy the filename to a temporary string, do the substitution > and then pass the temp string to CFStringCreateWithCString(). I > think a better approach would be to scrap my...