BUG: SMB3.11 POSIX extensions: Absolute symlinks lose leading slash on creation
Max-Ulrich Farber <[email protected]>
| Newsgroups | org.kernel.vger.linux-cifs |
|---|---|
| Message-ID | <[email protected]> |
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
Best regards,
M. Farber