From: Glen Holcomb Date: 2007-07-14T06:53:55+09:00 Subject: Re: Strange Segfault ------=_Part_35319_17752561.1184362826533 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/13/07, Daniel Berger wrote: > > On Jul 13, 2:39 pm, "Glen Holcomb" wrote: > > > > > Okay for reasons I'm not sure of right now and don't have time to > > investigate changing the server.call to server.call2 fixed the problem. > > > > For some reason my last post never made it... > > In short, your declaration of GetUserName is wrong - it takes 2 > parameters, not 1, and you aren't checking for failure. As it stands > now it looks like "login" will always be an empty string. > > Save yourself some time and use Admin.get_login from the sys-admin > package, which you can install via rubygems. > > Regards, > > Dan > > > Thanks for the info I wouldn't have caught it otherwise as it actually gives me the proper username. I will look into the sys-admin package. -- "Hey brother christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_35319_17752561.1184362826533--