Bug 7001 - libsmbclient should map reserved names like colon(:) or trailing space/dot
Summary: libsmbclient should map reserved names like colon(:) or trailing space/dot
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: 4.14.5
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
URL:
Keywords:
: 3792 4317 5666 10491 (view as bug list)
Depends on: 11255
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-18 17:01 UTC by Shirakawasuna
Modified: 2021-06-28 18:12 UTC (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shirakawasuna 2009-12-18 17:01:14 UTC
My setup: current archlinux systems, both the server and the client have samba version 3.4.3.  I'm sharing files (videos) with a simple setup and 'share' security privileges.  When viewing the share using either smbclient or KDE dolphin's smb:// protocol, invalid Windows chars like colons (":") or or question marks ("?") result in mangling.  I suspect libsmbclient as a result of both interfaces having this issue.  Mounting with CIFS does not mangle the filenames.

After asking on the samba irc channel on freenode, user kukks confirmed this behavior on the git version as of the 18th of December, 2009.  testparm indicates that unix extensions are enabled and I have attempted messing with the charset options several times (although I was informed this was not the problem), to no avail.
Comment 1 Derrell Lipman 2009-12-19 15:26:18 UTC
Contrary to the similar names, smbclient is not based on libsmbclient. The mangling occurs much deeper than either of those.

Jeremy, to you to work on or reassign.

Derrell
Comment 2 Björn Jacke 2017-12-29 22:26:49 UTC
*** Bug 5666 has been marked as a duplicate of this bug. ***
Comment 3 Björn Jacke 2021-06-28 17:43:32 UTC
This bug is about libsmbclient.

We should consider to map reserved names in libsmbclient the same way like the macOS and Linux cifs clients do.

Related bug reports are bug 11255 and bug 8776 for example.
Comment 4 Björn Jacke 2021-06-28 17:50:34 UTC
*** Bug 4317 has been marked as a duplicate of this bug. ***
Comment 5 Björn Jacke 2021-06-28 18:01:02 UTC
*** Bug 3792 has been marked as a duplicate of this bug. ***
Comment 6 Björn Jacke 2021-06-28 18:12:09 UTC
*** Bug 10491 has been marked as a duplicate of this bug. ***