--- 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
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
[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
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
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
--- 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
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
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