wide link support broken in 4.19.5-1
Description
Samba with wide links is broken in package 4.19.5-1. When they're enabled via wide links = yes
in [global]
, starting smb.service
fails. Here's the error from the journal:
Mar 01 20:51:01 sweet-chili smbd[852265]: [2024/03/01 20:51:01.136906, 0] ../../lib/util/modules.c:49(load_module)
Mar 01 20:51:01 sweet-chili smbd[852265]: Error loading module '/usr/lib/samba/vfs/widelinks.so': /usr/lib/samba/libgenrand-samba4.so: version `SAMBA_4.19.5_SAMBA4' not found (required by /usr/lib/samba/vfs/widelinks.so)
Mar 01 20:51:01 sweet-chili smbd[852265]: [2024/03/01 20:51:01.136918, 0] ../../source3/smbd/vfs.c:185(vfs_init_custom)
Mar 01 20:51:01 sweet-chili smbd[852265]: error probing vfs module 'widelinks': NT_STATUS_UNSUCCESSFUL
Mar 01 20:51:01 sweet-chili smbd[852265]: [2024/03/01 20:51:01.136926, 0] ../../source3/smbd/vfs.c:381(smbd_vfs_init)
Mar 01 20:51:01 sweet-chili smbd[852265]: smbd_vfs_init: widelinks enabled and vfs_init_custom failed for vfs_widelinks module
Mar 01 20:51:01 sweet-chili smbd[852265]: [2024/03/01 20:51:01.136933, 0] ../../source3/smbd/smb2_service.c:612(make_connection_snum)
Mar 01 20:51:01 sweet-chili smbd[852265]: make_connection_snum: vfs_init failed for service all
This is a regression from earlier versions.
Workarounds
After switching to wide links = no
the daemon can be started again. However, this is not a fix for me; I need wide links and am aware of the potential issues with it.
Downgrading back to 4.19.4-1 fixes the issue again; the 4.19.4-1 daemon starts just fine with wide links = yes
.
Package versions
[0 root@sweet-chili ~] pacman -Qo /usr/lib/samba/vfs/widelinks.so /usr/lib/samba/libgenrand-samba4.so
/usr/lib/samba/vfs/widelinks.so is owned by samba 4.19.5-1
/usr/lib/samba/libgenrand-samba4.so is owned by smbclient 4.19.5-1
[0 root@sweet-chili ~] pacman -Q samba smbclient libwbclient
samba 4.19.5-1
smbclient 4.19.5-1
libwbclient 4.19.5-1
I've pacman -Syu
'ed right before filing this issue; there's no newer version of either package available.
How to reproduce
- Update to the aforementioned package version.
- Add
wide links = yes
in the[global]
section of/etc/samba/smb.conf
. - Try to restart
smb.service
- Observe the error in the journal or via
systemctl status smb.service