Bug 15960 - libsmbclient posix extensions with SMB3 don't work at all
Summary: libsmbclient posix extensions with SMB3 don't work at all
Status: ASSIGNED
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: Andreas Schneider
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-27 16:27 UTC by Andreas Schneider
Modified: 2025-12-16 06:45 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
asn: review? (slow)
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