rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] rdiff to SMB share?


From: Ben Escoto
Subject: Re: [rdiff-backup-users] rdiff to SMB share?
Date: Thu, 12 Jan 2006 23:28:44 -0600

>>>>> Cengiz Gunay <address@hidden>
>>>>> 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: pgpUjoMJXN34_.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]