[Win32utils-devel] [ win32utils-Bugs-2532]Etc::Admin.configure_group problem

Berger, Daniel Daniel.Berger at qwest.com
Wed Sep 28 11:34:56 EDT 2005


> -----Original Message-----
> From: win32utils-devel-bounces at rubyforge.org 
> [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of 
> Park Heesob
> Sent: Wednesday, September 28, 2005 3:05 AM
> To: Development and ideas for win32utils projects
> Subject: Re: [Win32utils-devel] [ 
> win32utils-Bugs-2532]Etc::Admin.configure_group problem
> 
> 
> Hi,
> ----- Original Message ----- 
> From: <noreply at rubyforge.org>
> To: <noreply at rubyforge.org>
> Sent: Wednesday, September 28, 2005 3:11 PM
> Subject: [Win32utils-devel] [ 
> win32utils-Bugs-2532 ]Etc::Admin.configure_group problem
> 
> 
> > Bugs item #2532, was opened at 2005-09-27 23:11
> > You can respond by visiting: 
> > 
> http://rubyforge.org/tracker/?func=detail&atid=411&aid=2532&group_id=8
> > 5
> >
> > Category: win32-etc
> > Group: Code
> > Status: Open
> > Resolution: None
> > Priority: 3
> > Submitted By: Daniel Berger (djberg96)
> > Assigned to: Park Heesob  (phasis68)
> > Summary: Etc::Admin.configure_group problem
> >
> > Initial Comment:
> > Ruby 1.8.2
> > Windows XP Pro
> >
> > I can't seem to configure an existing group with more than 
> four users.  
> > As
> > a test, I added users "user0" to "user99".  Then I ran the 
> following 
> > snippet:
> >
> > tc::Admin.configure_group(
> >   :group_name => "group0",
> >   :description => "Test group - delete this group",
> >   :local? => true,
> >   :users => %w/user7 user1 user2 user99 user0/
> > )
> >
> > This fails.  However, if I reduce the number of users to 4 or less,
> > regardless of which users 0 through 99 I use, it works.
> >
> > Dan (me)
> 
> I guess the source etc.c at line 843 should be
>         lgmi = malloc((sizeof(LOCALGROUP_MEMBERS_INFO_3) * len));
> 
> Why did you use / ?
>          lgmi = malloc((sizeof(LOCALGROUP_MEMBERS_INFO_3) * len) /
>             sizeof(LOCALGROUP_MEMBERS_INFO_3));
> 

Because I'm a bonehead?

I'll fix it today, thanks.

Dan



More information about the win32utils-devel mailing list