[Pkg-xfce-devel] Bug#357226: xffm4: "undefined error" -- SMB Network lookup fails if server name includes a space.

A. Costa agcosta at gis.net
Thu Mar 16 09:35:05 UTC 2006


Package: xffm4
Version: 4.2.3-1
Severity: normal


'konqueror' can access the shares of a Win98 box on my network, but
'xffm' fails at it.  Details...

In 'xffm' I click the "SMB Network" virtual folder. Beneath it a
"WORKGROUP" folder appears.  Click that, beneath that a "THE"
folder appears.  Click that, 'xffm' chugs a little, then
displays "undefined error".

The diagnostics pane shows:

    Looking for master browsers...
    XFSAMBA> nmblookup -M -- -
    querying __MSBROWSE__ on 192.168.1.255
    192.168.1.73 __MSBROWSE__<01>
    XFSAMBA> nmblookup -A 192.168.1.73
    Looking up status of 192.168.1.73
        THE SOURCE      <00> -         B <ACTIVE> 
        WORKGROUP       <00> - <GROUP> B <ACTIVE> 
        { stuff deleted }

    XFSAMBA> smbclient -N -L //THE

It seems as though 'smbclient' is using its '-L' switch (list services)
to see what "THE SOURCE" has, but somehow the second word is cut off.
Since there's no server named "THE", it fails.

Note that from the command line:

    % smbclient -N -L "//THE SOURCE"

...works correctly.

I'm wondering if some servername variable needs to include
quotation marks as to preserve that middle space.  

Either that, or the name parsing code uses spaces as delimiters, instead of
something like:

    # grab the first server name, labeled "<00>"
    % servername="`nmblookup -A 192.168.1.73 | grep "<00> -         B <ACTIVE>" | sed -e 's/^\t*//' -e 's/ *<00.*$//'`"
    % echo "$servername"
    THE SOURCE

Hope this helps...


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages xffm4 depends on:
ii  libatk1.0-0              1.10.3-1        The ATK accessibility toolkit
ii  libc6                    2.3.6-3         GNU C Library: Shared libraries an
ii  libdbh1.0-1              1.0.24-1        Creates disk based hashtables
ii  libglib2.0-0             2.8.6-1         The GLib library of C routines
ii  libgtk2.0-0              2.8.13-1        The GTK+ graphical user interface 
ii  libice6                  6.9.0.dfsg.1-4  Inter-Client Exchange library
ii  libpango1.0-0            1.10.4-1        Layout and rendering of internatio
ii  libsm6                   6.9.0.dfsg.1-4  X Window System Session Management
ii  libstartup-notification0 0.8-1           library for program launch feedbac
ii  libx11-6                 6.9.0.dfsg.1-4  X Window System protocol client li
ii  libxfce4mcs-client-2     4.2.3-1         Client library for Xfce4 configure
ii  libxfce4mcs-manager-2    4.2.3-1         Manager library for Xfce4 configur
ii  libxfce4util-1           4.2.3.2-1       Utility functions library for Xfce
ii  libxfcegui4-3            4.2.3-1         Basic GUI C functions for Xfce4
ii  libxml2                  2.6.23.dfsg.2-2 GNOME XML library
ii  procps                   1:3.2.6-2.1     /proc file system utilities
ii  xlibs                    6.9.0.dfsg.1-4  X Window System client libraries m
ii  zlib1g                   1:1.2.3-11      compression library - runtime

xffm4 recommends no packages.

-- no debconf information




More information about the Pkg-xfce-devel mailing list