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

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

Re: [rdiff-backup-users] Integer too small on AMD64 machine


From: dean gaudet
Subject: Re: [rdiff-backup-users] Integer too small on AMD64 machine
Date: Mon, 11 Apr 2005 20:39:31 -0700 (PDT)

On Mon, 11 Apr 2005, dean gaudet wrote:

> >I haven't seen this before, perhaps someone else has some insight.
> >The problem seems to be that rdiff-backup can't query the username of
> >some uid because the uid (as read from the file system) is too big.
> >
> >Probably there is some file with a junk uid, but probably rdiff-backup
> >should handle this case without crashing.  Is it traditional that uids
> >have to be less than 65536/32768 or something?
> >
> >Or should this be a bug in python's getpwuid since very large uids
> >should be allowable.
> 
> i'd look for a 16->64 bit sign extension which should have been 16->32 
> bit... or shouldn't have happenned at all.  i don't know enough about 
> python typesize / sign extensions to figure it out myself.  but the ubuntu 
> system probably has 32-bit uids, and you might be using 64-bit ints in 
> rdiff-backup.
> 
> 16-bit uids are more traditional, but 32-bits is common in new distros.

hmm i wonder if you'd get away with (uid&0xffffffff) as a hack... but the 
annoying thing is i wonder what you're supposed to do to figure out the 
max uid... for most folks (uid&0xffff) is correct.

-dean




reply via email to

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