Bug 13712 - Unable to access files below folder name with trailing dot or space
Summary: Unable to access files below folder name with trailing dot or space
Status: NEW
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: kernel fs (show other bugs)
Version: 3.x
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Steve French
QA Contact: cifs QA contact
Depends on:
Reported: 2018-12-14 01:47 UTC by Jan Edler
Modified: 2020-07-16 01:18 UTC (History)
1 user (show)

See Also:

patch for cifsConvertToUTF16() (758 bytes, patch)
2018-12-14 01:53 UTC, Jan Edler
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Edler 2018-12-14 01:47:23 UTC
There's a problem, I believe an oversight, in the fix for bug 11206.

# mount.cifs //windowshost/share /mnt -overs=3.0,mapposix,iocharset=utf8,user=xxx,domain=yyy,password=zzz

# cd /mnt/tricky-names
# mkdir dir-trailing-dot.
# ls
# echo foo >dir-trailing-dot./foo
-bash: dir-trailing-dot./foo: No such file or directory
# mkdir x
# echo foo >x/foo
# mv x dir2-trailing-dot.
# ls dir2-trailing-dot.
# cat dir2-trailing-dot./foo
cat: dir2-trailing-dot./foo: No such file or directory

I used the CentOS 3.10.0-957.1.3.el7.x86_64 kernel and cifs module,
but I think every modern version has the same problem.

I'll attach a patch for the fix that we are using.
Comment 1 Jan Edler 2018-12-14 01:53:57 UTC
Created attachment 14738 [details]
patch for cifsConvertToUTF16()