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

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

Re: [rdiff-backup-users] [PATCH] importing user_group in a native window


From: Andrew Ferguson
Subject: Re: [rdiff-backup-users] [PATCH] importing user_group in a native windows environment
Date: Fri, 27 Jun 2008 14:06:25 -0400

On Jun 27, 2008, at 3:59 AM, Fred Gansevles wrote:

After applying Josh Nisly's patches to use rdiff-backup on windows without using cygwin, importing the user_group module raises an ImportError. Since the grp and pwd modules, which user_group uses, are not available in a native windows environment, running rdiff-backup will fail. The user_group module is not needed when using the win_acls extension, because the user and group information of files is stored in the win_acl (in fact, the SecurityDescriptor is stored, containing the Owner, Group and ACLs)
So to be able to use rdiff-backup, the attached patch must be appied.

Fred Gansevles
address@hidden

Hi Fred,

I have added this patch to CVS, thanks.

Also, I assume you wanted to patch the uname2uid() and gname2gid() functions as well? They are in the same file and also make class to pwd.getpwnam() and grp.getgrnam() .... I simply added NameError to the list of caught exceptions in those try blocks as well.


Josh, does Fred's patch look good to you from a Windows perspective? He took a slightly different approach than you did when you first looked into patching this issue.


thanks,
Andrew





reply via email to

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