Package: samba / 2:4.22.3+dfsg-4

Metadata

Package Version Patches format
samba 2:4.22.3+dfsg-4 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
libsmbclient ensure lfs 221618.patch | (download)

source3/include/libsmbclient.h | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 ensure libsmbclient.h is being used with lfs enabled
talloc standalone.diff | (download)

lib/talloc/wscript | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 force talloc to be standalone
Date: Tue, 26 Nov 2024 17:28:51 +0300
tevent standalone.diff | (download)

lib/tevent/wscript | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 force tevent to be standalone
Date: Tue, 26 Nov 2024 17:28:51 +0300
tdb standalone.diff | (download)

lib/tdb/wscript | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 force tdb to be standalone
Date: Tue, 26 Nov 2024 17:28:51 +0300
tdb_logging_func.diff | (download)

lib/tdb/ABI/tdb-1.2.1.sigs | 1 1 + 0 - 0 !
lib/tdb/common/open.c | 5 5 + 0 - 0 !
2 files changed, 6 insertions(+)

 provide public symbol tdb_logging_function removed upstream without major version change. (bug #511011)

hurd compat.patch | (download)

lib/tevent/testsuite.c | 4 4 + 0 - 0 !
lib/util/tests/tfork.c | 3 3 + 0 - 0 !
2 files changed, 7 insertions(+)

 hurd compatibility changes
README_nosmbldap tools.patch | (download)

examples/LDAP/README | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 mention smbldap-tools package in examples/ldap/readme

Bug-Debian: http://bugs.debian.org/341934
smbclient pager.patch | (download)

source3/include/local.h | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 use the pager alternative as pager is pager is undefined

Bug-Debian: http://bugs.debian.org/135603
usershare.patch | (download)

docs-xml/smbdotconf/misc/usersharemaxshares.xml | 2 1 + 1 - 0 !
lib/param/loadparm.c | 2 2 + 0 - 0 !
source3/param/loadparm.c | 2 1 + 1 - 0 !
3 files changed, 4 insertions(+), 2 deletions(-)

 enable net usershares by default at build time

Enable net usershares by default at build time, with a limit of 100, and update
the corresponding documentation.

Bug-Debian: http://bugs.debian.org/443230
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/128548
heimdal rfc3454.txt | (download)

third_party/heimdal/lib/wind/rfc3454.txt-table | 7074 7074 + 0 - 0 !
third_party/heimdal_build/wscript_build | 6 3 + 3 - 0 !
2 files changed, 7077 insertions(+), 3 deletions(-)

 patch in symbol table from rfc3454, for heimdal scripts
add so version to private libraries | (download)

buildtools/wafsamba/wafsamba.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 add so version number to private libraries for dpkg-shlibdeps

We also want dpkg-shlibdeps to generate correct dependency information
for the private libraries in our binary packages, but dpkg-shlibdeps
only works when the library has a version number.

ldb no replace.diff | (download)

lib/ldb/wscript | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 drop "replace" dependency from libldb
Date: Wed, 27 Nov 2024 21:51:50 +0300
fix nfs service name to nfs kernel server.patch | (download)

ctdb/config/events/legacy/60.nfs.script | 6 4 + 2 - 0 !
ctdb/config/nfs-linux-kernel-callout | 19 17 + 2 - 0 !
2 files changed, 21 insertions(+), 4 deletions(-)

 fix nfs related service names

Upstream defines nfs related service names based on the Linux
distribution. This patch fixes the names for Debian and derivatives.

Update by Andreas Hasenack <andreas@canonical.com> (LP: #1961840):
Use nfsconf(8) if it's available, instead of parsing the old config
files in /etc/default/nfs-*

Bug-Debian: https://bugs.debian.org/929931
Bug-Ubuntu: https://bugs.launchpad.net/bugs/722201
ctdb config enable syslog by default.patch | (download)

ctdb/config/ctdb.conf | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 ctdb-config: enable syslog by default
use bzero instead of memset_s.diff | (download)

lib/replace/replace.h | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 use bzero() instead of memset_s()

lib/replace/replace.h header defines ZERO_STRUCT macro
which uses memset_s() function (which is similar to
memset() but can not be optimized out by the compiler).
Glibc has bzero() with similar property, while memset_s()
have is implemented in lib/replace/replace.c, - this way,
some binaries needlessly link with libreplace-samba4 just
to get rep_memset_s() symbol. By using bzero() instead,
this endless linkage is eliminated, so we can package,
for example, libldb (which uses ZERO_STRUCT) without it
linking to libreplace-samba4.

Note: actually using explicit_bzero() so it is not optimized
out by the compiler - this is the original goal of using
memset_s().

ctdb_etcd_lock path.patch | (download)

ctdb/doc/ctdb-etcd.7.xml | 2 1 + 1 - 0 !
ctdb/utils/etcd/ctdb_etcd_lock | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 fix pathname for ctdb_etcd_lock
ctdb create piddir.patch | (download)

ctdb/config/ctdb.init | 1 1 + 0 - 0 !
packaging/systemd/ctdb.service.in | 1 1 + 0 - 0 !
2 files changed, 2 insertions(+)

 create ctdb pid directory

(which is /run/ctdb/). Create it in the systemd service
file (using RuntimeDirectory directive) and in the sysv-init
script.

silence waf uselib_local.diff | (download)

buildtools/wafsamba/samba_waf18.py | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 silence uselib_local warning produced by waf
disable setuid confchecks.patch | (download)

source3/lib/util_sec.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 disable setuid configure checks
move msg.sock from var lib samba to run samba.patch | (download)

python/samba/tests/blackbox/downgradedatabase.py | 1 1 + 0 - 0 !
python/samba/tests/join.py | 2 1 + 1 - 0 !
python/samba/tests/samdb.py | 2 1 + 1 - 0 !
source3/lib/messages.c | 9 2 + 7 - 0 !
source4/lib/messaging/messaging.c | 2 1 + 1 - 0 !
source4/torture/drs/python/samba_tool_drs.py | 2 1 + 1 - 0 !
source4/torture/drs/python/samba_tool_drs_critical.py | 2 1 + 1 - 0 !
source4/torture/drs/python/samba_tool_drs_no_dns.py | 2 1 + 1 - 0 !
8 files changed, 9 insertions(+), 13 deletions(-)

 move msg.sock from /var/lib/samba to /run/samba

Move socket directory from /var/lib/samba to /run/samba,
exactly like msg.lock.  This directory is only used by various
samba components to communicate with each other (smbcontrol),
there's no place for it in /var/lib.

Also remove msg.sock subdir in various tests.

It'd be nice to also move ntp socket and similar somewhere to
meaningful error if no samba ad provision.patch | (download)

python/samba/provision/common.py | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 print meaningful error message if samba-ad-provision is not installed
Debian-Specific: yes
meaningful error if no python3 markdown.patch | (download)

python/samba/ms_forest_updates_markdown.py | 6 5 + 1 - 0 !
python/samba/ms_schema_markdown.py | 6 5 + 1 - 0 !
python/samba/netcmd/domain/schemaupgrade.py | 4 2 + 2 - 0 !
3 files changed, 12 insertions(+), 4 deletions(-)

 print meaningful error message if python3-markdown is not installed
Debian-Specific: yes
ctdb use run instead of var run.patch | (download)

ctdb/wscript | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 ctdb: use /run/ctdb instead of /var/run/ctdb
revert ldb use hexchars_upper from replace.h.patch | (download)

lib/ldb/common/ldb_dn.c | 5 3 + 2 - 0 !
1 file changed, 3 insertions(+), 2 deletions(-)

 revert "ldb: user hexchars_upper from replace.h"
replace xpg strerror.patch | (download)

lib/replace/replace.c | 2 1 + 1 - 0 !
lib/replace/replace.h | 5 5 + 0 - 0 !
lib/replace/wscript | 1 1 + 0 - 0 !
3 files changed, 7 insertions(+), 1 deletion(-)

 replace: use __xpg_strerror_r if available
Date: Fri, 07 Feb 2025 10:04:37 +0300
add support for bind 9.20.patch | (download)

python/samba/provision/sambadns.py | 3 2 + 1 - 0 !
source4/setup/named.conf.dlz | 4 2 + 2 - 0 !
2 files changed, 4 insertions(+), 3 deletions(-)

 s4/dlz: add support for bind 9.20
libads fix get_kdc_ip_string.patch | (download)

source3/libads/kerberos.c | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 libads: fix get_kdc_ip_string() ...
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bug-Debian: https://bugs.debian.org/1109005