[Win32utils-devel] [ win32utils-Bugs-2532 ]Etc::Admin.configure_group problem
Park Heesob
phasis at nownuri.net
Wed Sep 28 05:05:24 EDT 2005
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=85
>
> 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));
Regards,
Park Heesob
More information about the win32utils-devel
mailing list