Bug#871779: /sbin/mount.cifs: Some remote folders missing when mounting the share using -o vers=2.x option
- To: Thibault Roulet <tr@omch.ch>, 871779@bugs.debian.org
- Cc: submit@bugs.debian.org
- Subject: Bug#871779: /sbin/mount.cifs: Some remote folders missing when mounting the share using -o vers=2.x option
- From: Salvatore Bonaccorso <carnil@debian.org>
- Date: Sat, 15 May 2021 16:33:58 +0200
- Message-id: <YJ/b1isUfN4dct5B@eldamar.lan>
- Reply-to: Salvatore Bonaccorso <carnil@debian.org>, 871779@bugs.debian.org
- In-reply-to: <ee81087d-99ba-6885-6d5c-989d89adac55@omch.ch>
- References: <ee81087d-99ba-6885-6d5c-989d89adac55@omch.ch> <ee81087d-99ba-6885-6d5c-989d89adac55@omch.ch>
Source: linux
Source-Version: 4.19~rc7-1~exp1
On Fri, Aug 11, 2017 at 03:02:56PM +0200, Thibault Roulet wrote:
> Package: cifs-utils
> Version: 2:6.7-1
> Severity: normal
> File: /sbin/mount.cifs
> Tags: upstream
>
> Dear Maintainer,
>
> I have a shared folder on a windows 7 ENT Machine
> Mounting this folder using the following options
> mount -t cifs //host-address/share -o
> username=user,password=mypassword,ro /path/to/folder/
> I can list the whole content of the shared zone
>
> # ls -1
> byuno
> cyxmry
> dubikovpkxyx
> dypon
> ruyo
> Fxypxnrh
> foyyo
> fyxurnyxth
> gyxrtprl
> hu
> johnppon
> mxppxnti
> nxprry
> Qurrn
> $RECYCLE.BIN
> prvryin
> ptrllxcci
> ptylixnou
> System Volume Information
> wxpry
> phu
> pobi
>
> Then when mounting the same folder with
> mount -t cifs //host-address/share -o
> username=user,password=mypassword,ro,vers=2.1 /path/to/folder/
>
> # ls -1
> cyxmry
> dubikovpkxyx
> dypon
> ruyo
> Fxypxnrh
> foyyo
> fyxurnyxth
> gyxrtprl
> hu
> johnppon
> mxppxnti
> nxprry
> Qurrn
> prvryin
> ptrllxcci
> ptylixnou
> System Volume Information
> wxpry
> phu
> pobi
>
> The $RECYCLE.BIN folder is missing but also the byuno folder
> I would say I don't care about the RECYCLE.BIN one as it's the trash but the
> other one should be there.
> I checked the permissions/owner of this folder, it's the same as the others.
The upstream commit 0595751f2679 ("smb2: fix missing files in root
share directory listing") landed in 4.19-rc7 and got backported to
various stable series.
Regards,
Salvatore
Reply to: