Bug 15960 - libsmbclient posix extensions with SMB3 don't work at all
Summary: libsmbclient posix extensions with SMB3 don't work at all
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba release manager
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-27 16:27 UTC by Andreas Schneider
Modified: 2026-04-21 11:49 UTC (History)
2 users (show)

See Also:


Attachments
patch for 4.23 (16.09 KB, patch)
2025-12-10 06:13 UTC, Andreas Schneider
slow: review+
Details
updated patch for 4.23 (18.77 KB, patch)
2025-12-16 06:45 UTC, Andreas Schneider
slow: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schneider 2025-11-27 16:27:23 UTC
libsmbclient posix extensions with SMB3 don't work at all.

a) smbc_setOptionPosixExtensions() doesn't do anything

b) smbc_fgetxattr() calls getxattr() without the *f*!
   This means smbc_fgetxattr(posix.attr.enabled) always returns -1.

Have patchset, need bug.
Comment 1 Samba QA Contact 2025-12-09 19:34:03 UTC
This bug was referenced in samba master:

3a5826d2facf140e610ca08cc80340c7aa5cf96a
e6e1cd753509698766de46df29c490fae5fcde9d
8c276ff55efd3577e2a141613190231eefb8063f
1b5e40ef37eacaf2598401b43c1e9944e88a2308
2493bfa84e48badb9e7e8460e16aea68f90f431b
Comment 2 Andreas Schneider 2025-12-10 06:13:00 UTC
Created attachment 18787 [details]
patch for 4.23
Comment 3 Ralph Böhme 2025-12-10 07:22:04 UTC
First! :) Reassigning to Björn for inclusion in 4.23.
Comment 4 Björn Jacke 2025-12-12 13:08:59 UTC
(In reply to Andreas Schneider from comment #2)
autobuild complains, doesn't compile in 4.23.
Comment 5 Andreas Schneider 2025-12-16 06:45:17 UTC
Created attachment 18790 [details]
updated patch for 4.23
Comment 6 Andreas Schneider 2026-04-20 13:36:03 UTC
This is already fixed in Samba 4.24.0 or newer.
Comment 7 Andreas Schneider 2026-04-20 13:43:37 UTC
@Ralph it is still waiting on your review!
Comment 8 Ralph Böhme 2026-04-20 13:49:07 UTC
Reassigning to Björn for inclusion in 4.24 and 4.23.
Comment 9 Andreas Schneider 2026-04-20 14:04:08 UTC
It is already in 4.24 :-)

git tag --contains 8c276ff55efd3577e2a141613190231eefb8063f | cat
samba-4.24.0
samba-4.24.0rc1
samba-4.24.0rc2
samba-4.24.0rc3
samba-4.24.1
Comment 10 Samba QA Contact 2026-04-20 15:07:03 UTC
This bug was referenced in samba v4-23-test:

7bded2db88498d4dd8be339437ac6e6f7d5ee32c
b745256e658d4959579310345fdde6f358f687bb
c3a6f0a9c0f8358ac743225b8bbdf796b729d516
11368c3ecfc7d1ba27d0f1b175ac526c24796c38
f5baf08ec62c83b7a9d08070b05ae568168e022e
Comment 11 Samba QA Contact 2026-04-21 11:49:31 UTC
This bug was referenced in samba v4-23-stable (Release samba-4.23.7):

7bded2db88498d4dd8be339437ac6e6f7d5ee32c
b745256e658d4959579310345fdde6f358f687bb
c3a6f0a9c0f8358ac743225b8bbdf796b729d516
11368c3ecfc7d1ba27d0f1b175ac526c24796c38
f5baf08ec62c83b7a9d08070b05ae568168e022e