If a filename contains an accented char and is not readable (NT_STATUS_ACCESS_DENIED error), then the error string is truncated at the accented char. Steps to reproduce: 1) Setup a Windows PC that is sharing a directory. 2) Make a file in that directory not readable by the SMB user. 3) Name that file with an accent in it. (Ex: "Voisinage réseau") 4) Run: /usr/bin/smbclient \\\\vicky\\DOCUMENT -U receptioniste -E -d 1 -c tarmode\ full -Tc - >/dev/null Expected results: ----- [...] directory \Videos\ 504 (504000.0 kb/s) \Videos\desktop.ini directory \Voisinage d'impression\ NT_STATUS_ACCESS_DENIED listing \Voisinage d'impression\* directory \Voisinage réseau\ NT_STATUS_ACCESS_DENIED listing \Voisinage réseau\* tar: dumped 4813 files and directories Total bytes written: 657149952 ----- Actual results: ----- [...] directory \Videos\ 504 (504000.0 kb/s) \Videos\desktop.ini directory \Voisinage d'impression\ NT_STATUS_ACCESS_DENIED listing \Voisinage d'impression\* directory \Voisinage réseau\ NT_STATUS_ACCESS_DENIED listing \Voisinage rtar: dumped 4813 files and directories Total bytes written: 657149952 -----
Just found this on a box with an invalid locale setting. I solved it by export LANG=de_DE.UTF-8 and it worked. Please set your LANG variable correctly and retry. Volker
Thanks a lot, I ran dpkg-reconfigure locales on the debian server and it fixed the problem.