[Pkg-samba-maint] Bug#761993: smbclient mput reports wrong return code

Daniele Di Domizio daniele.didomizio at eurac.edu
Wed Sep 17 15:00:54 UTC 2014


Package: smbclient
Version: 2:3.6.6-6+deb7u4
Severity: normal

The smbclient mput command reports a wrong error code on errors:

root at testserv:~# smbclient //smb2.mydomain.com/chrisfood -A smbsharepassword -U user -c "prompt; cd tt; mput testflow.sh"
Domain=[MYDOMAIN] OS=[Unix] Server=[Samba 4.1.11-Debian]
NT_STATUS_ACCESS_DENIED opening remote file \tt\testflow.sh
root at testserv:~# echo $?
0

While the put command behaves correctly:

root at testserv:~# smbclient //smb2.mydomain.com/chrisfood -A smbsharepassword -U user -c "prompt; cd tt; put testflow.sh"
Domain=[MYDOMAIN] OS=[Unix] Server=[Samba 4.1.11-Debian]
NT_STATUS_ACCESS_DENIED opening remote file \tt\testflow.sh
root at testserv:~# echo $?
1


-- System Information:
Debian Release: 7.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages smbclient depends on:
ii  dpkg              1.16.15
ii  libc6             2.13-38+deb7u4
ii  libcap2           1:2.22-1.2
ii  libcomerr2        1.42.5-1.1
ii  libgssapi-krb5-2  1.10.1+dfsg-5+deb7u2
ii  libk5crypto3      1.10.1+dfsg-5+deb7u2
ii  libkrb5-3         1.10.1+dfsg-5+deb7u2
ii  libldap-2.4-2     2.4.31-1+nmu2
ii  libpopt0          1.16-7
ii  libreadline6      6.2+dfsg-0.1
ii  libtalloc2        2.0.7+git20120207-1
ii  libtdb1           1.2.10-2
ii  libtinfo5         5.9-10
ii  libwbclient0      2:3.6.6-6+deb7u4
ii  samba-common      2:3.6.6-6+deb7u4
ii  zlib1g            1:1.2.7.dfsg-13

smbclient recommends no packages.

Versions of packages smbclient suggests:
ii  cifs-utils  2:5.5-1

-- no debconf information



More information about the Pkg-samba-maint mailing list