Oh, weird. The extra space is not new? It turns up in the debug log for
20.04 as well. But it successfully resolves "humax" to 10.1.1.11.

```
Using netbios name WOODY.
Using workgroup WORKGROUP.
SMBC_server: server_n=[humax] server=[humax]
 -> server_n=[humax] server=[humax]
Opening cache file at /run/samba/gencache.tdb
tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file /run/samba/gencac
gencache_init: Opening user cache file /home/link/.cache/samba/gencache.tdb.
sitename_fetch: No stored sitename for realm ''
namecache_fetch: name humax#20 found.
Connecting to 10.1.1.11 at port 445
socket options: SO_KEEPALIVE=0, SO_REUSEADDR=0, SO_BROADCAST=0, TCP_NODELAY=1, T
 session setup ok
 tconx ok
Case sensitive: True
Server connect ok: //humax/Recordings: 0x564955e5d480
smbc_read(0x564955e5b3d0, 64000)
  --> 64000
<binary data>
```

I built the 20.04 version from source to confirm that I could...

```
sudo apt build-dep smbclient
apt source smbclient
cd samba-4.15.13+dfsg
dpkg-buildpackage
debian/smbclient/usr/bin/smbget ...
```

Then I tried building the 22.04 source on 20.04.

```
# ew
sudo sed -i 's/focal/jammy/' /etc/apt/sources.list
sudo apt update

apt source smbclient

sudo sed -i 's/jammy/focal/' /etc/apt/sources.list
sudo apt update

cd samba-4.15.13+dfsg
vi debian/control # change/remove some dependencies
dpkg-buildpackage
```

and it also worked.

So I guess it's not the samba package itself that is causing the
problem?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2092836

Title:
  smbget adds a space to the server name, fails to get

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2092836/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to