Re: [Bug 192055] Re: Failure when using getpwnam core function from perl

2008-03-10 Thread Alceu Rodrigues de Freitas Junior
--- Steve Peters <[EMAIL PROTECTED]> escreveu: > It looks like rather than having problems with > getpwname(), there are > actually other bugs within this CGI script. I would > say then that > this problem has been resolved, from this > bugtracker's point of view. Steve, I'm astonished. After a

Re: [Bug 192055] Re: Failure when using getpwnam core function from perl

2008-03-09 Thread Steve Peters
On Thu, Feb 21, 2008 at 2:39 PM, TiagoCruz <[EMAIL PROTECTED]> wrote: > Running with root/strace > write(1, " > PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml"; lang="en-US" xml:lang="en

[Bug 192055] Re: Failure when using getpwnam core function from perl

2008-03-07 Thread TiagoCruz
[EMAIL PROTECTED]:/usr/lib/cgi-bin$ perl -T faus.cgi user=tonho password=senha password2=senha options=add group=samba username='Antonio dos Santos' Content-Type: text/html; charset=ISO-8859-1 Child process died with returning code equal to 65280 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona

[Bug 192055] Re: Failure when using getpwnam core function from perl

2008-02-20 Thread Alceu Rodrigues de Freitas Junior
I think that's the testing Steve is asking for: [EMAIL PROTECTED] cgi-bin]$ perl -T faus.cgi user=tonho password=senha password2=senha options=add group=samba username='Antonio dos Santos' Content-Type: text/html; charset=ISO-8859-1 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> htt

[Bug 192055] Re: Failure when using getpwnam core function from perl

2008-02-19 Thread TiagoCruz
Hello, This is the result of test: An error ocurred when running the program /usr/sbin/addsmb ==> error.log <== Child process died with returning code equal to 512 error raised by line 696: Cannot fetch ubuntu information with getpwnam(): No such file or directory at /usr/lib/cgi-bin/faus.cgi l

Re: [Bug 192055] Re: Failure when using getpwnam core function from perl

2008-02-18 Thread Alceu Rodrigues de Freitas Junior
--- Steve Peters <[EMAIL PROTECTED]> escreveu: > Whenever getpwnam() returns undef, $! should be set. > Without properly > checking $!, you will not have a way to understand > what the root cause > error is. There will be no way to determine whether > the problem is in > Perl or glibc. > > Ste

Re: [Bug 192055] Re: Failure when using getpwnam core function from perl

2008-02-18 Thread Steve Peters
Whenever getpwnam() returns undef, $! should be set. Without properly checking $!, you will not have a way to understand what the root cause error is. There will be no way to determine whether the problem is in Perl or glibc. Steve On Feb 18, 2008 10:54 AM, Alceu Rodrigues de Freitas Junior <[E

[Bug 192055] Re: Failure when using getpwnam core function from perl

2008-02-18 Thread Alceu Rodrigues de Freitas Junior
Hello Steve, No, the addsmb script is not testing the result from getpwnam(). Even if it were, we could only generate a better error message or use the sleep() for waiting the user to be added to /etc/passwd correctly. While is a good programming practice to test the result from calling a function