Berger, Daniel
2005-Sep-28 15:34 UTC
[Win32utils-devel] [ win32utils-Bugs-2532]Etc::Admin.configure_group problem
> -----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
Dan, What are your thoughts on packaging of all the wonderfully collected win32 tools as gems? Even if someone else the packaging? I am thinking of potentially having this be a learning experience for some new guys at work =) Zach
Reasonably Related Threads
- [ win32utils-Bugs-2532 ] Etc::Admin.configure_group problem
- [ win32utils-Bugs-4699 ] Service dependencies are not being created properly
- Samba 3 handles Linux permissions differently then Samba 2 ?
- [ win32utils-Bugs-10555 ] wait call in while loop generate "bignum too big to convert into long" error
- admin users = user0 (how force admin permission?)