[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Integer too small on AMD64 machine
From: |
Ben Escoto |
Subject: |
Re: [rdiff-backup-users] Integer too small on AMD64 machine |
Date: |
Tue, 12 Apr 2005 20:01:59 -0700 |
Well I'm not sure there is a bug in python or not, but I think this
patch should fix your case.
--
Ben Escoto
--- rdiff_backup/user_group.py 18 Sep 2003 02:10:14 -0000 1.4
+++ rdiff_backup/user_group.py 13 Apr 2005 02:58:57 -0000 1.5
@@ -47,7 +47,7 @@
try: return uid2uname_dict[uid]
except KeyError:
try: uname = pwd.getpwuid(uid)[0]
- except KeyError: uname = None
+ except (KeyError, OverflowError), e: uname = None
uid2uname_dict[uid] = uname
return uname
@@ -56,7 +56,7 @@
try: return gid2gname_dict[gid]
except KeyError:
try: gname = grp.getgrgid(gid)[0]
- except KeyError: gname = None
+ except (KeyError, OverflowError), e: gname = None
gid2gname_dict[gid] = gname
return gname
pgpDFprWBdbOq.pgp
Description: PGP signature