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
<[EMAIL PROTECTED]> wrote:
> 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, I believe we could do better to understand why the error is
> happening before trying a hack in the Perl script.
>
> Unfornately I'm unable to generate a test with the Ubuntu version that
> we detected the error, we will need to wait for an update from Tiago.
>
>
> --
> Failure when using getpwnam core function from perl
> https://bugs.launchpad.net/bugs/192055
> You received this bug notification because you are a bug contact for
> perl in ubuntu.
>

-- 
Failure when using getpwnam core function from perl
https://bugs.launchpad.net/bugs/192055
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to