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

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

[rdiff-backup-users] Re: Testing duplicity 0.2.0


From: Ben Escoto
Subject: [rdiff-backup-users] Re: Testing duplicity 0.2.0
Date: Wed, 16 Oct 2002 08:30:46 -0700

>>>>> "PE" == Peter Ehrenberg <address@hidden>
>>>>> wrote the following on 15 Oct 2002 11:32:17 +0200

  PE> But may be there is a bug: Duplicity report on each incremental
  PE> run some new directory files and changed regular files, witch
  PE> are neither new nor changed:

Hi, thanks for the bug report.  The problem seemed to be with the
files that had no associated user name (only an uid or gid).  See if
the attached patch works for you:


-- 
Ben Escoto
--- path.py~    Sun Sep 29 11:18:58 2002
+++ path.py     Wed Oct 16 08:24:08 2002
@@ -154,11 +154,9 @@
 
                # Set user and group id
                try: self.stat.st_uid = pwd.getpwnam(tarinfo.uname)[2]
-               except KeyError:
-                       self.stat.st_uid = os.getuid() # default to current user
+               except KeyError: self.stat.st_uid = tarinfo.uid
                try: self.stat.st_gid = grp.getgrnam(tarinfo.gname)[2]
-               except KeyError:
-                       self.stat.st_gid = os.getgid() # default to current 
group
+               except KeyError: self.stat.st_gid = tarinfo.gid
 
                self.stat.st_mtime = tarinfo.mtime
                self.stat.st_size = tarinfo.size

Attachment: pgp_zLL14JEtH.pgp
Description: PGP signature


reply via email to

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