>>>>> Cengiz Gunay <[EMAIL PROTECTED]>
>>>>> wrote the following on Thu, 12 Jan 2006 11:55:12 -0500 (EST)
> 
> So rdiff-backup opens a handle to the directory itself, right after doing 
> the hardlink test within the directory. This handle is never closed until 
> the point we're interested in.

Great, I think this should work now:

--- rdiff_backup/rpath.py       16 Dec 2005 20:25:58 -0000      1.98
+++ rdiff_backup/rpath.py       13 Jan 2006 05:26:10 -0000
@@ -1148,6 +1148,7 @@
                        os.fsync(fd)
                        os.close(fd)
                except OSError, e:
+                       if locals().has_key('fd'): os.close(fd)
                        if e.errno != errno.EPERM or self.isdir(): raise
 
                        # Maybe the system doesn't like read-only fsyncing.


-- 
Ben Escoto

Attachment: pgpN6rrNUlxVs.pgp
Description: PGP signature

_______________________________________________
rdiff-backup-users mailing list at [email protected]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Reply via email to