From djberg96 at yahoo.com Tue Mar 1 08:53:15 2005 From: djberg96 at yahoo.com (Daniel Berger) Date: Tue Mar 1 08:49:13 2005 Subject: [Win32utils-devel] Re: test/unit error report for win32-service In-Reply-To: <4223E645.3060307@everestkc.net> Message-ID: <20050301135316.40914.qmail@web50307.mail.yahoo.com> Hi, --- Shashank Date wrote: > Dan, > > I am assuming that the version in CVS is the most > current one. > Report follows. > -- shanko > ------------------------------------------------------ > C:\win32utils\win32-service\test>ruby tc_service.rb > This test will stop and start your Clipboard > service, as well as > pause and > resume your Schedule service. This is harmless > unless you are actually > using these services at the moment you run this > test. Is it OK to > proceed? (y/N) > y > This will take a few seconds. Be patient... > Loaded suite tc_service > Started > .....F.............tc_service.rb:134: warning: > redefining constant > Struct::Win32Service > ..E.tc_service.rb:199: warning: redefining constant > Struct::Win32ServiceStatus > .F > Finished in 7.481 seconds. I fixed this warning in 0.4.5 > 1) Failure: > test_create_delete(TC_Win32Service) > [tc_service.rb:164]: > Exception raised: > Class: > Message: <"The specified service already exists."> > ---Backtrace--- > tc_service.rb:165:in `create_service' > tc_service.rb:165:in `test_create_delete' > tc_service.rb:164:in `assert_nothing_raised' > tc_service.rb:164:in `test_create_delete' I suspect what happened here is that the test was created in an earlier test run, but was never deleted. For this case, I would suggest manually deleting the "foo" service, and running the test script again. > --------------- > > 2) Error: > test_start_stop(TC_Win32Service): > Win32::ServiceError: The dependency service or group > failed to start. > tc_service.rb:140:in `start' > tc_service.rb:140:in `test_start_stop' Yeah, I made a note about this one in the README file. It appears that the Network DDE service is turned now off by default (as of SP2?), which is the dependency in question that it's complaining about. You can either ignore it or turn on the Network DDE service and try again. > > 3) Failure: > test_version(TC_Win32Service) [tc_service.rb:52]: > Bad version. > <"0.4.5"> expected but was > <"0.4.4">. Fixed in 0.4.5 - you must have gotten to it before the final release. ;) > C:\win32utils\win32-service\test>ruby tc_daemon.rb > Loaded suite tc_daemon > Started > ...F > Finished in 0.02 seconds. > > 1) Failure: > test_version(TC_Daemon) [tc_daemon.rb:24]: > <"0.4.5"> expected but was > <"0.4.4">. Again, fixed as of 0.4.5. Thanks for the report! Regards, Dan __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo From djberg96 at yahoo.com Tue Mar 1 08:54:41 2005 From: djberg96 at yahoo.com (Daniel Berger) Date: Tue Mar 1 08:50:39 2005 Subject: [Win32utils-devel] Re: Directory structure In-Reply-To: <4223EBBD.70109@everestkc.net> Message-ID: <20050301135442.41283.qmail@web50307.mail.yahoo.com> Hi, --- Shashank Date wrote: > Dan, > > One request about the directory structure under all > the modules of > win32utils: can we stick to the \examples directory > being at the same > level (sibling) instead of under (child) the \doc > directory. Currently, > it is inconsistent. Some modules have it as a child > of \doc and some > have it as a sibling of \doc. It adds unneccesary > complexity at the > installer script. > > Thanks, > -- shanko Yes, I've been lazy about this. I should have them all reorganized by tonight. Regards, Dan __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail From ntalbott at gmail.com Tue Mar 1 10:53:16 2005 From: ntalbott at gmail.com (Nathaniel Talbott) Date: Tue Mar 1 10:49:55 2005 Subject: [Win32utils-devel] Open3.popen3 bug Message-ID: Running this program: require 'win32/open3' i, o, e, pid = Open3.popen3("c:/ruby/bin/ruby.exe -e\"sleep 10\"") i.close Gives this result: C:\_co\source\build\web\temp>ruby t.rb t.rb:5: [BUG] Segmentation fault ruby 1.8.2 (2004-06-29) [i386-mswin32] This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Closing any of the IO's seems to have this result. Ideas? -- Nathaniel <:((>< Terralien, Inc. From ntalbott at gmail.com Tue Mar 1 10:55:45 2005 From: ntalbott at gmail.com (Nathaniel Talbott) Date: Tue Mar 1 12:36:00 2005 Subject: [Win32utils-devel] Open3.popen3 oddity Message-ID: Open3.popen3 returns the pid as well as the in, out, and err streams. I thought only the streams were supposed to be returned. Thanks -- Nathaniel <:((>< From Daniel.Berger at qwest.com Tue Mar 1 12:43:36 2005 From: Daniel.Berger at qwest.com (Berger, Daniel) Date: Tue Mar 1 12:39:37 2005 Subject: [Win32utils-devel] Open3.popen3 oddity Message-ID: <8FE83020B9E1A248A182A9B0A7B76E7358B28D@itomae2km07.AD.QINTRA.COM> > -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Nathaniel Talbott > Sent: Tuesday, March 01, 2005 8:56 AM > To: win32utils-devel@rubyforge.org > Subject: [Win32utils-devel] Open3.popen3 oddity > > > Open3.popen3 returns the pid as well as the in, out, and err > streams. I thought only the streams were supposed to be returned. > > Thanks > > > -- > Nathaniel Yeah, we cheated for the sake of open4. You usually won't notice, since you're going to do something like: i, o, e = Open3.popen3("whatever") I suppose if you were slurping the results into an array and only expecting there to be 3 elements, it could cause a problem. If it is a problem, please let us know and we'll break open4 into a truly separate method. Otherwise...ssshhh. Regards, Dan From ntalbott at gmail.com Tue Mar 1 18:37:49 2005 From: ntalbott at gmail.com (Nathaniel Talbott) Date: Tue Mar 1 18:33:46 2005 Subject: [Win32utils-devel] Open3.popen3 oddity In-Reply-To: <8FE83020B9E1A248A182A9B0A7B76E7358B28D@itomae2km07.AD.QINTRA.COM> References: <8FE83020B9E1A248A182A9B0A7B76E7358B28D@itomae2km07.AD.QINTRA.COM> Message-ID: On Tue, 1 Mar 2005 11:43:36 -0600, Berger, Daniel wrote: > Yeah, we cheated for the sake of open4. You usually won't notice, since > you're going to do something like: > > i, o, e = Open3.popen3("whatever") > > I suppose if you were slurping the results into an array and only > expecting there to be 3 elements, it could cause a problem. If it is a > problem, please let us know and we'll break open4 into a truly separate > method. > > Otherwise...ssshhh. OK, just noticed it and while I figured you probably already knew about it, I figured I'd mention it. Thanks -- Nathaniel <:((>< Terralien, Inc. From djberg96 at yahoo.com Tue Mar 1 19:21:16 2005 From: djberg96 at yahoo.com (Daniel Berger) Date: Tue Mar 1 19:17:13 2005 Subject: [Win32utils-devel] Re: Open3.popen3 bug Message-ID: <20050302002117.17903.qmail@web50301.mail.yahoo.com> > Nathaniel Talbott wrote: > Running this program: > require 'win32/open3' > i, o, e, pid = Open3.popen3("c:/ruby/bin/ruby.exe -e\"sleep 10\"") > i.close > Gives this result: > C:\_co\source\build\web\temp>ruby t.rb > t.rb:5: [BUG] Segmentation fault > ruby 1.8.2 (2004-06-29) [i386-mswin32] > This application has requested the Runtime to terminate it in an unusual way. > Please contact the application's support team for more information. >Closing any of the IO's seems to have this result. >Ideas? I cannot duplicate this error with MS V++ 7.0 on Windows XP Pro, SP2. Can you please provide more information, including your platform, SP number and compiler? Thanks. Dan __________________________________ Do you Yahoo!? Yahoo! Sports - Sign up for Fantasy Baseball. http://baseball.fantasysports.yahoo.com/ From ntalbott at gmail.com Wed Mar 2 11:59:14 2005 From: ntalbott at gmail.com (Nathaniel Talbott) Date: Wed Mar 2 11:55:13 2005 Subject: [Win32utils-devel] Re: Open3.popen3 bug In-Reply-To: <20050302002117.17903.qmail@web50301.mail.yahoo.com> References: <20050302002117.17903.qmail@web50301.mail.yahoo.com> Message-ID: On Tue, 1 Mar 2005 16:21:16 -0800 (PST), Daniel Berger wrote: > I cannot duplicate this error with MS V++ 7.0 on > Windows XP Pro, SP2. Can you please provide more > information, including your platform, SP number and > compiler? Sure. My platform is Windows XP Pro, SP2. Ruby is an older version of the One-Click installer (ruby 1.8.2 (2004-06-29) [i386-mswin32]). I'm using the open3.so binary from the 0.0.2 win32-utils installer. It may be that I just need a Ruby upgrade, which is something that I know I need to get around to eventually. Thanks -- Nathaniel <:((>< From Daniel.Berger at qwest.com Wed Mar 2 12:04:24 2005 From: Daniel.Berger at qwest.com (Berger, Daniel) Date: Wed Mar 2 12:00:29 2005 Subject: [Win32utils-devel] Re: Open3.popen3 bug Message-ID: <8FE83020B9E1A248A182A9B0A7B76E7358B2A2@itomae2km07.AD.QINTRA.COM> > -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Nathaniel Talbott > Sent: Wednesday, March 02, 2005 9:59 AM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Re: Open3.popen3 bug > > > On Tue, 1 Mar 2005 16:21:16 -0800 (PST), Daniel Berger > wrote: > > > I cannot duplicate this error with MS V++ 7.0 on > > Windows XP Pro, SP2. Can you please provide more information, > > including your platform, SP number and compiler? > > Sure. My platform is Windows XP Pro, SP2. Ruby is an older > version of the One-Click installer (ruby 1.8.2 (2004-06-29) > [i386-mswin32]). I'm using the open3.so binary from the 0.0.2 > win32-utils installer. > > It may be that I just need a Ruby upgrade, which is something > that I know I need to get around to eventually. Yes, I definitely recommend upgrading. If nothing else, the Win32OLE library has some crucial bug fixes in the later release that I don't think are in your version. Please upgrade and let us know if that fixes the problem. Thanks. Dan From djberg96 at yahoo.com Sat Mar 5 16:30:53 2005 From: djberg96 at yahoo.com (Daniel Berger) Date: Sat Mar 5 16:26:43 2005 Subject: [Win32utils-devel] [win32-file] Suggested API change Message-ID: <20050305213054.14721.qmail@web50304.mail.yahoo.com> Hi all, As things stand now, to get the ACL for a file, it's a two step process: File.get_permissions("some_file").each{ |acct,perm| p acct p File.securities(perm) } I was thinking of merging these two calls into one so that it would return a hash, with the account as the key, and the value would be an array of access rights. Or possibly an array of ACLStruct's instead of a hash. In other words, File.get_permissions would call File.securities internally. Seem reasonable? Or too much tinkering? Perhaps a separate method in case folks would rather have the OR'd numeric value? Regards, Dan __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From Daniel.Berger at qwest.com Sat Mar 12 13:13:27 2005 From: Daniel.Berger at qwest.com (Berger, Daniel) Date: Sat Mar 12 13:09:02 2005 Subject: [Win32utils-devel] FW: Watir needs a Win32GUI library Message-ID: <8FE83020B9E1A248A182A9B0A7B76E7358B2EF@itomae2km07.AD.QINTRA.COM> Anyone need something to do? :) Dan -----Original Message----- From: Bret Pettichord [mailto:bret@pettichord.com] Sent: Saturday, March 12, 2005 8:25 AM To: ruby-talk ML Cc: wtr-general@rubyforge.org Subject: Watir needs a Win32GUI library We've seen growing enthusiasm for Watir, a web-testing library that is good enough that it is convincing people to learn Ruby just so that they can use it. Here are some things people are saying about it: Watir Rocks! I have played with it for only about on hour and accomplished what I had wanted to do (but did not have the wherewithall) for ages. Truly awesome !! In my opinion, WATIR has no peer as a framework to drive functional test automation in Internet Explorer. I have been using watir for a few weeks and have been very productive in automating the testing of our Web based application. I downloaded Watir a few days ago, without having have any high hopes for it, but I have been very impressed by this tool. I have limited scripting experience and none with Ruby, but I was able to follow your examples and be productive in short order. My hat is off to all involved in this project, you're doing a great service for the testing community - mad props! Up until now, I'd managed to avoid learning the Ruby scripting language.... But after seeing what Watir could do and how neat Ruby is, I became a convert. See http://wtr.rubyforge.org/wiki/wiki.pl?WatirTestimonials for more comments. We've just release version 1.1 of Watir. http://rubyforge.org/frs/?group_id=104&release_id=1782 I'm writing to ask for help. The biggest problem with Watir is its support for various dialogs. These dialogs appear when you use a browser; for example, a login dialog or a security dialog or a javascript dialog. Watir mostly works by accessing the DOM via IE's COM interface. But there is no COM/DOM interface to these dialogs. We have some code that uses Win32 API calls, but it is buggy and needs work. Frankly, i think we would be better off using a general Win32 GUI testing library than trying to build a peice of it ourselves. Perl has a really good Win32-GuiTest library. http://cpan.uwinnipeg.ca/htdocs/Win32-GuiTest/ There is also a Ruby port of this, but it uses Cygwin and appears to have been abandoned. http://raa.ruby-lang.org/project/win32-guitest/ We need something that works with MSWIN. Can you help us? So far we have had some suggestions. One person suggested that we just use the Perl library. Another has suggested that we use AutoIt. But personally i would prefer a Ruby solution. Surely i'm not the only Ruby programmer left on the Windows platform. Do we want to let the Perl programmers dominate Windows? Bret _____________________ Bret Pettichord www.pettichord.com From nightphotos at gmail.com Sun Mar 13 02:55:55 2005 From: nightphotos at gmail.com (Wayne Vucenic) Date: Sun Mar 13 02:51:26 2005 Subject: [Win32utils-devel] FW: Watir needs a Win32GUI library In-Reply-To: <8FE83020B9E1A248A182A9B0A7B76E7358B2EF@itomae2km07.AD.QINTRA.COM> References: <8FE83020B9E1A248A182A9B0A7B76E7358B2EF@itomae2km07.AD.QINTRA.COM> Message-ID: Hi Dan, > There is also a Ruby port of this, but it uses Cygwin and appears to > have > been abandoned. > http://raa.ruby-lang.org/project/win32-guitest/ > > We need something that works with MSWIN. Can you help us? I got the above win32-guitest to build and run on Windows without Cygwin. I'll clean it up and send it to Bret tomorrow. Wayne On Sat, 12 Mar 2005 12:13:27 -0600, Berger, Daniel wrote: > Anyone need something to do? :) > > Dan > > -----Original Message----- > From: Bret Pettichord [mailto:bret@pettichord.com] > Sent: Saturday, March 12, 2005 8:25 AM > To: ruby-talk ML > Cc: wtr-general@rubyforge.org > Subject: Watir needs a Win32GUI library > > We've seen growing enthusiasm for Watir, a web-testing library that is > good > enough that it is convincing people to learn Ruby just so that they can > use > it. Here are some things people are saying about it: > > Watir Rocks! I have played with it for only about on hour and > accomplished what I had wanted to do (but did not have the wherewithall) > > for ages. Truly awesome !! > > In my opinion, WATIR has no peer as a framework to drive functional > > test automation in Internet Explorer. > > I have been using watir for a few weeks and have been very > productive > in automating the testing of our Web based application. > > I downloaded Watir a few days ago, without having have any high > hopes > for it, but I have been very impressed by this tool. I have limited > scripting experience and none with Ruby, but I was able to follow your > examples and be productive in short order. My hat is off to all involved > in > this project, you're doing a great service for the testing community - > mad > props! > > Up until now, I'd managed to avoid learning the Ruby scripting > language.... But after seeing what Watir could do and how neat Ruby is, > I > became a convert. > > See http://wtr.rubyforge.org/wiki/wiki.pl?WatirTestimonials for more > comments. > > We've just release version 1.1 of Watir. > http://rubyforge.org/frs/?group_id=104&release_id=1782 > > I'm writing to ask for help. The biggest problem with Watir is its > support > for various dialogs. These dialogs appear when you use a browser; for > example, a login dialog or a security dialog or a javascript dialog. > Watir > mostly works by accessing the DOM via IE's COM interface. But there is > no > COM/DOM interface to these dialogs. We have some code that uses Win32 > API > calls, but it is buggy and needs work. Frankly, i think we would be > better > off using a general Win32 GUI testing library than trying to build a > peice > of it ourselves. > > Perl has a really good Win32-GuiTest library. > http://cpan.uwinnipeg.ca/htdocs/Win32-GuiTest/ > > There is also a Ruby port of this, but it uses Cygwin and appears to > have > been abandoned. > http://raa.ruby-lang.org/project/win32-guitest/ > > We need something that works with MSWIN. Can you help us? > > So far we have had some suggestions. One person suggested that we just > use > the Perl library. Another has suggested that we use AutoIt. But > personally > i would prefer a Ruby solution. Surely i'm not the only Ruby programmer > left on the Windows platform. Do we want to let the Perl programmers > dominate Windows? > > Bret > > _____________________ > Bret Pettichord > www.pettichord.com > > _______________________________________________ > win32utils-devel mailing list > win32utils-devel@rubyforge.org > http://rubyforge.org/mailman/listinfo/win32utils-devel > From timbyrd at pobox.com Mon Mar 14 04:03:02 2005 From: timbyrd at pobox.com (Timothy Byrd) Date: Mon Mar 14 04:03:12 2005 Subject: [Win32utils-devel] Ruby code to create junctions on NTFS volumes. Message-ID: <007701c52875$40d283f0$6401a8c0@IDEALISM> Here is some Ruby code for creating junctions on NTFS volumes. These are the main routines: Dir.junction?(dir) => true if dir is a junction Dir.reparse_target(dir) => returns the target of a junction, or dir Dir.create_junction(junctName, existingTarget) => creates a junctName junction pointing to existingTarget (also used (Dan's?) GetLastError code and did some simple wide/narrow character conversion) -- Timothy -------------- next part -------------- A non-text attachment was scrubbed... Name: junction.rb Type: application/octet-stream Size: 17601 bytes Desc: not available Url : http://rubyforge.org/pipermail/win32utils-devel/attachments/20050314/72060489/junction-0001.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: junction_sample.rb Type: application/octet-stream Size: 730 bytes Desc: not available Url : http://rubyforge.org/pipermail/win32utils-devel/attachments/20050314/72060489/junction_sample-0001.obj From sdate at everestkc.net Tue Mar 15 13:48:55 2005 From: sdate at everestkc.net (Shashank Date) Date: Tue Mar 15 17:24:23 2005 Subject: [Win32utils-devel] One Click Installer v 0.0.3 In-Reply-To: <20050315144620.65169.qmail@web50306.mail.yahoo.com> References: <20050315144620.65169.qmail@web50306.mail.yahoo.com> Message-ID: <42372E17.7070802@everestkc.net> Hello All, We are getting ready to release the one-click installer (v0.0.3) for win32-utils pretty soon. I have attached the zip file for you all to try. You will also find it uploaded on rubyforge: http://rubyforge.org/frs/?group_id=85 Please uninstall the previous version by executing uninstall.exe normally found under c:\ruby\lib\ruby\site_ruby\1.8\i386-msvcrt\win32 Unless we hear any serious show stoppers, we are planning on announcing it on ruby-talk tomorrow. Thanks. The win32utils Team -------------- next part -------------- A non-text attachment was scrubbed... Name: win32utils-V.0.0.3.zip Type: application/zip Size: 249828 bytes Desc: not available Url : http://rubyforge.org/pipermail/win32utils-devel/attachments/20050315/db1c4e8f/win32utils-V.0.0.3-0001.zip From ntalbott at gmail.com Wed Mar 16 11:12:56 2005 From: ntalbott at gmail.com (Nathaniel Talbott) Date: Wed Mar 16 11:08:20 2005 Subject: [Win32utils-devel] Problem with win32-service Message-ID: It compiles fine, but when the resulting library is required, it says: C:\_co\source\build\ruby\extensions\win32-service-0.4.5\test>ruby tc_daemon.rb C:/_co/source/build/ruby/extensions/win32-service-0.4.5/win32/service.so: `interactive?' is not proper name for a struct member (NameError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require' from tc_daemon.rb:14 ruby -v says: ruby 1.8.2 (2005-03-14) [i386-mswin32] Looking at ruby CVS, it appears that this behavior was introduced to struct.c on March 4th, and disallows adding members ending with a '?' (as the error indicates). I'm going to patch this locally, but figured you'd want to know. Thanks -- Nathaniel <:((>< From Daniel.Berger at qwest.com Wed Mar 16 11:16:35 2005 From: Daniel.Berger at qwest.com (Berger, Daniel) Date: Wed Mar 16 11:12:04 2005 Subject: [Win32utils-devel] Problem with win32-service Message-ID: <8FE83020B9E1A248A182A9B0A7B76E7358B319@itomae2km07.AD.QINTRA.COM> > -----Original Message----- > From: win32utils-devel-bounces@rubyforge.org > [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of > Nathaniel Talbott > Sent: Wednesday, March 16, 2005 9:13 AM > To: win32utils-devel@rubyforge.org > Subject: [Win32utils-devel] Problem with win32-service > > > It compiles fine, but when the resulting library is required, it says: > > > C:\_co\source\build\ruby\extensions\win32-service-0.4.5\test>r > uby tc_daemon.rb > > C:/_co/source/build/ruby/extensions/win32-service-0.4.5/win32/ > service.so: > `interactive?' is not proper name for a struct member (NameError) > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in > `require' > from tc_daemon.rb:14 > > ruby -v says: > > ruby 1.8.2 (2005-03-14) [i386-mswin32] > > Looking at ruby CVS, it appears that this behavior was > introduced to struct.c on March 4th, and disallows adding > members ending with a '?' (as the error indicates). I'm going > to patch this locally, but figured you'd want to know. > > Thanks > > -- > Nathaniel Thank you Nathaniel. Hopefully that's a bug in CVS. Otherwise, I will have to raise hell. Regards, Dan From Daniel.Berger at qwest.com Tue Mar 22 10:49:15 2005 From: Daniel.Berger at qwest.com (Berger, Daniel) Date: Tue Mar 22 10:44:33 2005 Subject: [Win32utils-devel] RE: etc win32utils is case sensitive Message-ID: <8FE83020B9E1A248A182A9B0A7B76E7358B341@itomae2km07.AD.QINTRA.COM> > -----Original Message----- > From: "Pe?a, Botp" [mailto:botp@delmonte-phil.com] > Sent: Monday, March 21, 2005 11:25 PM > To: ruby-talk ML > Subject: etc win32utils is case sensitive > > > Hi Win32 Team, > > 1. The getpwnam is case sensitive. This is windows, so it > should _not_. > > 2. Also, the msg error says ": can't find user for > patchlink". Shouldn't that be ":can't find user patchlink for > host bgpatch"? > > thanks and kind regards -botp Hi, That's odd. I'll check it out. However, I plan on deprecating win32-etc this week in favor of the sys-admin package. I just tested the Admin.get_user function and it appears to ignore case. Regards, Dan From Daniel.Berger at qwest.com Tue Mar 22 10:56:42 2005 From: Daniel.Berger at qwest.com (Berger, Daniel) Date: Tue Mar 22 10:51:58 2005 Subject: [Win32utils-devel] RE: etc win32utils seg faults when a pdc/bdc is queried Message-ID: <8FE83020B9E1A248A182A9B0A7B76E7358B342@itomae2km07.AD.QINTRA.COM> > -----Original Message----- > From: "Pe?a, Botp" [mailto:botp@delmonte-phil.com] > Sent: Tuesday, March 22, 2005 12:19 AM > To: ruby-talk ML > Subject: Re: etc win32utils seg faults when a pdc/bdc is queried > > > Hi Win32 team, > > Etc seg faults when a pdc or bdc (domain controller) is > queried. Is support for domain controllers not up yet? > > kind regards -botp > > note: domain controller tested is just NT and not 2K/AD > > ---------8<------------ > C:\family\ruby>ruby -rwin32/etc -e "p > Win32::Etc.getpwnam('Administrator','pdc')" > > -e:1: [BUG] Segmentation fault > ruby 1.8.2 (2004-12-25) [i386-mswin32] > > This application has requested the Runtime to terminate it in > an unusual way. Please contact the application's support team > for more information. Hm...that's strange. Does it help if you put a "\\" in front of the domain controller name? I believe NT requires that (while 2k and later do not). Still, it shouldn't segfault. I'll look into it. Regards, Dan