blue_cowdawg has asked for the wisdom of the Perl Monks concerning the following question:

The code sniglet:

#!/usr/local/bin/perl -w use strict; + use POSIX; use Filesys::SmbClient; + my $smb = new Filesys::SmbClient(username => "temp01", password =>"secret-hush-hush-password", workgroup => "ourWorkgroup", debug => 10) or die $!; + my $fd = $smb->opendir("smb://BKPEBW2K10/data") or die $!; foreach my $n ($smb->readdir($fd)) {print $n,"\n";} closedir ($fd);

The problem

When this code is run it issues at the spot where we open the file handle for the directory read it bombs with a

Not enough space at ./smbtest.pl line 45.

Anybody out there see this? What is out of space?

Replies are listed 'Best First'.
Re: FileSys::SmbClient returns odd error at odd time.
by samtregar (Abbot) on Nov 15, 2004 at 22:16 UTC
    Have you tried turning on debugging? Looking at the module source I see both runtime debugging hooks and compile time debugging in the XS half.

    Also, do you have any partitions which are out of space? The underlying C library might be trying to write a temp file, for example.

    -sam

          Have you tried turning on debugging?

      Debugging was certainly turned on and nothing came out.

      Additional tidbit of info: I just re-ran this script on a Linux box and got different errors that hint at authentication issues on the WinBloze server. Debugging worked as advertised on the Linux box but not on Solaris. Hints that there are multiple problems going on.