Re: BUG: SMB3.11 POSIX extensions: Absolute symlinks lose leading slash on creation

"Henrique Carvalho" <[email protected]>
Newsgroups org.kernel.vger.linux-cifs
Message-ID <[email protected]>
Hi,

On Fri Jun 26, 2026 at 12:39 PM -03, Max-Ulrich Farber wrote:
> Hello,
>
> Here is the bug report:
> --------------------------------------------------
> Subject: BUG: SMB3 POSIX extensions: Creating absolute symlinks from 
> client strips leading slash
>
> I am experiencing a bug with the SMB3 POSIX extensions ("smb3 unix 
> extensions = yes") where the leading slash of absolute symlinks is 
> stripped when created from the client side.
>
> Steps to reproduce:
> 1. Mount a Samba share on a Linux client with SMB3.11 and POSIX 
> extensions enabled.
> 2. Run the following command on the client:
>     ln -s /media/Raspi/Test/Reisen /media/Raspi/Reisen
>
> Expected result:
> The symlink points to the absolute path:
> /media/Raspi/Reisen -> /media/Raspi/Test/Reisen
>
> Actual result:
> The leading slash is missing, creating an invalid relative path:
> /media/Raspi/Reisen -> media/Raspi/Test/Reisen
>
> Additional Info:
> - Symlinks created directly on the server host work perfectly and keep 
> the leading slash.
> --------------------------------------------------
>
> Server: Samba Version 4.24.3-Debian-4.24.3+dfsg-1~bpo13+1
> Client: Kernel: 6.12.94+deb13-amd64

The website https://www.smb3posix.org lists Linux 6.13 or later as a
requirement.

-- 
Henrique
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.