[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Rdiff-backup-bugs] [bug #21202] Crash : AssertionError: no ownership of
From: |
Andrew Ferguson |
Subject: |
[Rdiff-backup-bugs] [bug #21202] Crash : AssertionError: no ownership of ... |
Date: |
Mon, 24 Dec 2007 22:38:06 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12 |
Update of bug #21202 (project rdiff-backup):
Status: None => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
Ok, I see why this is happening. Marc, I based the following fix off your
patch:
diff -r1.40 backup.py
205c205,206
< if Globals.process_uid != 0 and not dest_rp.readable():
---
> if (Globals.process_uid != 0 and not dest_rp.readable() and
> dest_rp.isowner()):
209d209
< assert dest_rp.isowner(), 'no ownership of %s' %
(dest_rp.path,)
211,212c211,219
< return Rdiff.get_signature(dest_rp)
<
---
> try:
> return Rdiff.get_signature(dest_rp)
> except IOError, e:
> if (e.errno == errno.EPERM):
> log.Log.FatalError("Could not open %s for
reading. Check "
> "permissions on file." %
(dest_rp.path,))
> else:
> raise
>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?21202>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [Rdiff-backup-bugs] [bug #21202] Crash : AssertionError: no ownership of ...,
Andrew Ferguson <=