Re: Rsyncrypto on Windows Vista
Brought to you by:
thesun
From: Shachar S. <sh...@sh...> - 2008-06-17 15:36:51
|
Thomas Constans wrote: > Hello, > > First of all, many thanks for this nice piece of software ! > > I am actually building a pygtk frontend to rsync + rsyncrypto. > Cool. Send it here when it's ready :-) > I was having some troubles on the newest (and crappiest) microsoft > product: > To support old applications, windows xp style directories (my documents, > application data, and so forth) are implemented in Windows Vista using > some kind of symlink, called "junction". > > And rsyncrypto actually choke on such file, giving a "input/output > error". > Sadly, I have to admit that I do not have Vista around, and I have been trying very hard to avoid it up until now. It seems I'll have to go get me a copy :-( Amazing. So Windows Vista has "junction points" (http://msdn.microsoft.com/en-us/library/bb968829(VS.85).aspx), but also has symbolic links (http://msdn.microsoft.com/en-us/library/aa365680(VS.85).aspx). And guess what - they are not the same! Blah.... On Windows, rsyncrypto uses the GetFileAttributesEx function to figure out what the type of the file is. The docs seem to suggest that junction points will have FILE_ATTRIBUTE_REPARSE_POINT set. I'll see what can be done with the code to make it work. As I don't have access to a Vista machine, if you could verify that point, it would be much appreciated. A tiny program to print (even hexa-decimal) the attributes of a junction point and send the result here would be enough. > It would be nice if rsyncrypto can handle (meaning ignore) this kind of > file more graciously. > > Can you try compiling the attached patch letting me know how it fares? > Best regards > > Keep up the good work > Shachar |