samba.git
2 weeks agoMerge version 2:4.24.3+dfsg-1+rpi1 and 2:4.24.4+dfsg-1 to produce 2:4.24.4+dfsg-1... forky-staging archive/raspbian/2%4.24.4+dfsg-1+rpi1 raspbian/2%4.24.4+dfsg-1+rpi1
Raspbian automatic forward porter [Tue, 21 Jul 2026 16:18:15 +0000 (17:18 +0100)]
Merge version 2:4.24.3+dfsg-1+rpi1 and 2:4.24.4+dfsg-1 to produce 2:4.24.4+dfsg-1+rpi1

5 weeks agoMerge samba (2:4.24.4+dfsg-1) import into refs/heads/workingbranch
Michael Tokarev [Tue, 30 Jun 2026 19:37:50 +0000 (22:37 +0300)]
Merge samba (2:4.24.4+dfsg-1) import into refs/heads/workingbranch

5 weeks agoasn1: Include <errno.h> before using/checking bits from it
Pino Toscano [Sat, 6 Jun 2026 20:25:09 +0000 (22:25 +0200)]
asn1: Include <errno.h> before using/checking bits from it

Origin: upstream, https://github.com/heimdal/heimdal/commit/2194be6c9259f79b97131cec8ae44e1180b4f309
Forwarded: not-needed

Commit 232c936ea3eabfd702aaaa106ddf9474f231d776 added a fallback ENOTSUP
definition. The check itself and the fallback definition rely on
<errno.h> to be included already, so in case it was not (depending on
the platform) then there will be a wrong definition of ENOTSUP.

Instead of rely on <errno.h> to be included before including a
generated header from this tool, include it manually. This way both
the ENOTSUP check and its fallback definition (if ever) will always
work.

Gbp-Pq: Name heimdal-errno-include.patch

5 weeks agocheck for openat2
Michael Tokarev [Tue, 24 Feb 2026 07:19:30 +0000 (10:19 +0300)]
check for openat2

Gbp-Pq: Name check-for-openat2.patch

5 weeks agoinline openat2 syscall
Michael Tokarev [Wed, 21 Jan 2026 09:20:05 +0000 (12:20 +0300)]
inline openat2 syscall

Forwarded: not-needed

openat2() is not provided by glibc, so is implemented in
samba's libreplace.  By inlining the implementation,
we avoid additional linkage to libreplace.

Not forwarding since proper fix needs proper clean-up
of the #ifdef'fery.

Gbp-Pq: Name inline-openat2.diff

5 weeks agoinline getprogname replacement
Michael Tokarev [Tue, 20 Jan 2026 19:27:54 +0000 (22:27 +0300)]
inline getprogname replacement

Forwarded: not-needed

Inline getprogname() by using program_invocation_short_name
when available (like with glibc).

This makes a lot of binaries to avoid linkage to libreplace.

This is a short and dirty version, proper change for upstream
should clean up #ifdef'fery in replace.c.

Gbp-Pq: Name inline-getprogname.diff

5 weeks agokdc: Fix memset_s() calls (fix #1296)
Nicolas Williams [Tue, 20 Jan 2026 22:05:31 +0000 (16:05 -0600)]
kdc: Fix memset_s() calls (fix #1296)

Origin: upstream, https://github.com/heimdal/heimdal/commit/112a82dd2596e228388c50b4c71b3aa816b86add
Forwarded: not-needed

Gbp-Pq: Name heimdal-kdc-fix-memset_s-calls-1296.patch

5 weeks agoprovide dependencies for libmscat-private-samba.so
Michael Tokarev [Sun, 14 Sep 2025 14:31:16 +0000 (17:31 +0300)]
provide dependencies for libmscat-private-samba.so

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15916
Forwarded: yes, https://bugzilla.samba.org/show_bug.cgi?id=15916

Gbp-Pq: Name libmscat-deps.patch

5 weeks agoreplace: use __xpg_strerror_r if available
Michael Tokarev [Fri, 7 Feb 2025 07:04:37 +0000 (10:04 +0300)]
replace: use __xpg_strerror_r if available

Forwarded: no

In order to avoid linking libreplace, use __xpg_strerror_r
instead of rep_strerror_r

Gbp-Pq: Name replace-xpg-strerror.patch

5 weeks agoctdb: use /run/ctdb instead of /var/run/ctdb
Michael Tokarev [Fri, 2 Dec 2022 08:45:01 +0000 (11:45 +0300)]
ctdb: use /run/ctdb instead of /var/run/ctdb

Forwarded: not-needed

Whole upstream path assignment needs a review.

Gbp-Pq: Name ctdb-use-run-instead-of-var-run.patch

5 weeks agoprint meaningful error message if python3-markdown is not installed
Michael Tokarev [Fri, 2 Dec 2022 08:08:27 +0000 (11:08 +0300)]
print meaningful error message if python3-markdown is not installed

Updated: Mon, 08 Apr 2024 14:14:38 +0300
Debian-Specific: yes
Forwarded: not-needed

Gbp-Pq: Name meaningful-error-if-no-python3-markdown.patch

5 weeks agoprint meaningful error message if samba-ad-provision is not installed
Michael Tokarev [Fri, 2 Dec 2022 07:54:31 +0000 (10:54 +0300)]
print meaningful error message if samba-ad-provision is not installed

Updated: Thu, 03 Aug 2023 17:06:24 +0300
Debian-Specific: yes
Forwarded: not-needed

Gbp-Pq: Name meaningful-error-if-no-samba-ad-provision.patch

5 weeks agomove msg.sock from /var/lib/samba to /run/samba
Michael Tokarev [Tue, 26 Apr 2022 13:11:48 +0000 (16:11 +0300)]
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
/run/samba too, but this is a bit more difficult since it is
used in other software.

https://lists.samba.org/archive/samba-technical/2022-April/137322.html

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Gbp-Pq: Name move-msg.sock-from-var-lib-samba-to-run-samba.patch

5 weeks agodisable setuid configure checks
Michael Tokarev [Fri, 8 Apr 2022 08:50:21 +0000 (11:50 +0300)]
disable setuid configure checks

Forwarded: not-needed

For some strange reason, when running reprotest test on salsa-ci,
which apparently is running as root, - on the *second* build only
the configure fails (after successfully built package the first
time). The configure test tries to change gid and verifies it
actually changed (not that the syscall exist), - and that fails.
Since it is extremely uncommon to configure the build process as
root, salsa-ci test environment details are quite deep down the line,
and we know the syscall actually works, just disable the probe,
pretending we are not root.

For upstream, this probably should be done by removing a *lot* of
configure-time checks which are useless these days.

Gbp-Pq: Name disable-setuid-confchecks.patch

5 weeks agosilence uselib_local warning produced by waf
Michael Tokarev [Sun, 3 Apr 2022 04:57:38 +0000 (07:57 +0300)]
silence uselib_local warning produced by waf

During config/build process in verbose mode, waf produces
about 2k repetitions of this warning:

  compat: "uselib_local" is deprecated, replace by "use"

which clutters the build log.

Comment this warning out for now until it will be
fixed properly.

Gbp-Pq: Name silence-waf-uselib_local.diff

5 weeks agocreate ctdb pid directory
Michael Tokarev [Fri, 9 Sep 2022 09:49:55 +0000 (12:49 +0300)]
create ctdb pid directory

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

Gbp-Pq: Name ctdb-create-piddir.patch

5 weeks agofix pathname for ctdb_etcd_lock
Michael Tokarev [Sat, 2 Apr 2022 14:49:38 +0000 (17:49 +0300)]
fix pathname for ctdb_etcd_lock

Forwarded: not-needed

Specify the actual installation path for this helper script.

This is a quick hack, this issue should be addressed
upstream in a more generic way.

Gbp-Pq: Name ctdb_etcd_lock-path.patch

5 weeks agouse explicit_bzero() instead of memset_explicit()
Debian Samba Maintainers [Tue, 30 Jun 2026 19:37:50 +0000 (22:37 +0300)]
use explicit_bzero() instead of memset_explicit()

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

Unfortunately there are just insane amount of similar
but non-standard functions, and upstream don't want
to stay on something simple and robust in this context.

Gbp-Pq: Name use-explicit_bzero-to-zero-memory.diff

5 weeks agoctdb-config: enable syslog by default
Rafael David Tinoco [Tue, 30 Jun 2026 19:37:50 +0000 (22:37 +0300)]
ctdb-config: enable syslog by default

Bug-Debian: https://bugs.debian.org/929931
Bug-Ubuntu: https://bugs.launchpad.net/bugs/722201
Last-Update: 2022-03-24
Forwarded: not-needed

CTDB uses /var/log/ctdb/ directory for the default log files. With
syslog disabled, systemd journal is not able to correctly inform
errors happening during service initialization.

Upstream community creates generic config files to be used by different
distributions, so this change makes no big difference to be accepted by
upstream.

With this patch the end user will be able to identify initialization
errors by executing:

  systemctl status ctdb.service

or to follow ctdb logs by executing:

  journalctl -f -u ctdb

Signed-off-by: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
Gbp-Pq: Name ctdb-config-enable-syslog-by-default.patch

5 weeks agofix nfs related service names
Rafael David Tinoco [Tue, 30 Jun 2026 19:37:50 +0000 (22:37 +0300)]
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
Last-Update: 2024-07-30

Gbp-Pq: Name fix-nfs-service-name-to-nfs-kernel-server.patch

5 weeks agodrop "replace" dependency from libldb
Michael Tokarev [Wed, 27 Nov 2024 18:51:50 +0000 (21:51 +0300)]
drop "replace" dependency from libldb

Forwarded: not-needed

When building as a sub-library within samba, where
libreplace is a private library, libldb.so will
have rpath pointing to the private samba dir.  Since
ldb actually does not use anything from libreplace,
just remove the dependency.

Gbp-Pq: Name ldb-no-replace.diff

5 weeks agoAdd so version number to private libraries for dpkg-shlibdeps
Jeroen Dekkers [Tue, 30 Jun 2026 19:37:50 +0000 (22:37 +0300)]
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.

Origin: vendor
Forwarded: not-needed

Gbp-Pq: Name add-so-version-to-private-libraries

5 weeks agoPatch in symbol table from rfc3454, for Heimdal scripts
Brian May [Tue, 30 Jun 2026 19:37:50 +0000 (22:37 +0300)]
Patch in symbol table from rfc3454, for Heimdal scripts

Forwarded: not-needed

Status: cherry-picked from heimdal package

Gbp-Pq: Name heimdal-rfc3454.txt

5 weeks agoUse the pager alternative as pager is PAGER is undefined
Steve Langasek [Tue, 30 Jun 2026 19:37:50 +0000 (22:37 +0300)]
Use the pager alternative as pager is PAGER is undefined

Bug-Debian: http://bugs.debian.org/135603
Forwarded: not-needed

Gbp-Pq: Name smbclient-pager.patch

5 weeks agoMention smbldap-tools package in examples/LDAP/README
Christian Perrier [Tue, 30 Jun 2026 19:37:50 +0000 (22:37 +0300)]
Mention smbldap-tools package in examples/LDAP/README

Bug-Debian: http://bugs.debian.org/341934
Forwarded: not-needed

Gbp-Pq: Name README_nosmbldap-tools.patch

5 weeks agohurd compatibility changes
Michael Tokarev [Thu, 3 Nov 2022 17:49:33 +0000 (20:49 +0300)]
hurd compatibility changes

Hurd does not define PIPE_BUF, so lib/tevent/testsuite.c fails to compile
(yes, this file is used as part of *samba* testsuite, not tevent testsuite).
Define it to a safe minimal value like 512 bytes.

Hurd does not provide SA_NOCLDWAIT define, so lib/util/tests/tfork.c does
not compile. This is only needed during testing to omit zombie process
generation, which has only cosmetic effect.  Define it to be 0.

Based on prior work and ideas by Samuel Thibault.

Gbp-Pq: Name hurd-compat.patch

5 weeks agoProvide public symbol tdb_logging_function removed upstream without major version...
Jelmer Vernooij [Tue, 30 Jun 2026 19:37:50 +0000 (22:37 +0300)]
Provide public symbol tdb_logging_function removed upstream without major version change. (bug #511011)

Status: Not forwarded upstream

Gbp-Pq: Name tdb_logging_func.diff

5 weeks agoforce tdb to be standalone
Michael Tokarev [Tue, 26 Nov 2024 14:28:51 +0000 (17:28 +0300)]
force tdb to be standalone

Forwarded: not-needed

Upstream ships contents of lib/tdb/ as a separate
source of tdb.  Since we build samba anyway, there's
no need to have separate tdb source package, it's
enough to build it during samba build.

Always build tdb as stand-alone library
(instead of being samba-private if in a subdir).

When building as a sub-library within samba,
where libreplace is a private library, libtdb.so
will have rpath pointing to the private samba
dir.  Since tdb actually does not use anything
from libreplace, just remove the dependency.

Gbp-Pq: Name tdb-standalone.diff

5 weeks agoforce tevent to be standalone
Michael Tokarev [Tue, 26 Nov 2024 14:28:51 +0000 (17:28 +0300)]
force tevent to be standalone

Forwarded: not-needed

Upstream ships contents of lib/tevent/ as a separate
source of tevent.  Since we build samba anyway, there's
no need to have separate tevent source package, it's
enough to build it during samba build.

Always build tevent as stand-alone library
(instead of being samba-private if in a subdir).

When building as a sub-library within samba, where
libreplace is a private library, libtevent.so will
have rpath pointing to the private samba dir.  Since
tevent actually does not use anything from libreplace,
just remove the dependency.

Gbp-Pq: Name tevent-standalone.diff

5 weeks agoforce talloc to be standalone
Michael Tokarev [Tue, 26 Nov 2024 14:28:51 +0000 (17:28 +0300)]
force talloc to be standalone

Forwarded: not-needed

Upstream ships contents of lib/talloc/ as a separate
source of talloc.  Since we build samba anyway, there's
no need to have separate talloc source package, it's
enough to build it during samba build.

Always build talloc as stand-alone library
(instead of being samba-private if in a subdir).

When building as a sub-library within samba, where
libreplace is a private library, libtalloc.so will
have rpath pointing to the private samba dir.  Since
talloc actually does not use anything from libreplace,
just remove the dependency.

Gbp-Pq: Name talloc-standalone.diff

5 weeks agoensure libsmbclient.h is being used with LFS enabled
Michael Tokarev [Sat, 2 Apr 2022 16:01:55 +0000 (19:01 +0300)]
ensure libsmbclient.h is being used with LFS enabled

Bug-Debian: https://bugs.debian.org/221618
Forwarded: not-needed

We build samba with LFS (Large File Support) even on 32bits.
This means some types like off_t are 64-bit wide, again,
even on a 32bit host.  libsmbclient.h uses off_t in function
prototypes, and thes prototypes muct match those which were
used at samba compile time - if some other source includes
libsmbclient.h without LFS, it'll get wrong prototypes and
the resulting binary will most likely crash when using
libsmbclient functions.

Detect and error-out this at compile time.

We can not do anything with this in the public header since
it is alredy too late to redefine things, since we can't
guarantee we're the first header a program #includes, and
at the time this libsmbclient.h is included, off_t can
already be defined so our (re)define of _FILE_OFFSET_BITS
does nothing already.

Patching libsmbclient.h to use off64_t means client program
should change their off_t to off64_t too when storing
file offsets returning from libsmbclient, so this is not
an option too.

With this change, we will error out even if the user source
does not use any off_t-related functions. Namely, it was ok
to #include <libsmbclient.h> and use smbc_open/smbc_read/
smbc_write/smbc_close without _F_O_B=64, - neither of these
functions uses off_t. smbc_lseek and others doesn't work,
but if a program does not use them anyway, whole thing will
just work even without enabling LFS.  Ideally we can probably
check each individual function which is being affected, by
replacing it with #error if sizeof(off_t) < 8.  But this
requires quite some hackery...

Gbp-Pq: Name libsmbclient-ensure-lfs-221618.patch

5 weeks agosamba (2:4.24.4+dfsg-1) unstable; urgency=medium
Michael Tokarev [Tue, 30 Jun 2026 19:37:50 +0000 (22:37 +0300)]
samba (2:4.24.4+dfsg-1) unstable; urgency=medium

  [ Pino Toscano ]
  * heimdal-errno-include.patch
    fix build on Hurd using fix from upstream heimdal

  [ Michael Tokarev ]
  * update to the new upstream stable/bugfix release:
   - https://bugzilla.samba.org/show_bug.cgi?id=14638:
     restrict anonymous = 2 breaks RODC functionality
   - https://bugzilla.samba.org/show_bug.cgi?id=16006:
     warning: assignment discards 'const' qualifier from pointer target type
     [-Wdiscarded-qualifiers]
   - https://bugzilla.samba.org/show_bug.cgi?id=16067:
     Require NTLMv2 session security on Windows makes trusts to Samba unusable
   - https://bugzilla.samba.org/show_bug.cgi?id=16092:
     Compilers may ignore overflow checks - Fix tautological-compare warnings
   - https://bugzilla.samba.org/show_bug.cgi?id=16095:
     Use-after-free in handling acls with claims and conditions
   - https://bugzilla.samba.org/show_bug.cgi?id=16149:
     domain\user not split when provided as username
     in smbc_set_credentials_with_fallback()
   - https://bugzilla.samba.org/show_bug.cgi?id=16151:
     winbindd stuck in init_dc_connection_rpc() returning
     NT_STATUS_TRUSTED_DOMAIN_FAILURE

[dgit import unpatched samba 2:4.24.4+dfsg-1]

5 weeks agoImport samba_4.24.4+dfsg.orig.tar.xz
Michael Tokarev [Tue, 30 Jun 2026 19:37:50 +0000 (22:37 +0300)]
Import samba_4.24.4+dfsg.orig.tar.xz

[dgit import orig samba_4.24.4+dfsg.orig.tar.xz]

5 weeks agoImport samba_4.24.4+dfsg-1.debian.tar.xz
Michael Tokarev [Tue, 30 Jun 2026 19:37:50 +0000 (22:37 +0300)]
Import samba_4.24.4+dfsg-1.debian.tar.xz

[dgit import tarball samba 2:4.24.4+dfsg-1 samba_4.24.4+dfsg-1.debian.tar.xz]

2 months agoMerge version 2:4.24.1+dfsg-1+rpi1 and 2:4.24.3+dfsg-1 to produce 2:4.24.3+dfsg-1... archive/raspbian/2%4.24.3+dfsg-1+rpi1 raspbian/2%4.24.3+dfsg-1+rpi1
Raspbian automatic forward porter [Sun, 31 May 2026 02:13:48 +0000 (03:13 +0100)]
Merge version 2:4.24.1+dfsg-1+rpi1 and 2:4.24.3+dfsg-1 to produce 2:4.24.3+dfsg-1+rpi1

2 months agoMerge samba (2:4.24.3+dfsg-1) import into refs/heads/workingbranch
Michael Tokarev [Tue, 26 May 2026 12:46:55 +0000 (15:46 +0300)]
Merge samba (2:4.24.3+dfsg-1) import into refs/heads/workingbranch

2 months agocheck for openat2
Michael Tokarev [Tue, 24 Feb 2026 07:19:30 +0000 (10:19 +0300)]
check for openat2

Gbp-Pq: Name check-for-openat2.patch

2 months agoinline openat2 syscall
Michael Tokarev [Wed, 21 Jan 2026 09:20:05 +0000 (12:20 +0300)]
inline openat2 syscall

Forwarded: not-needed

openat2() is not provided by glibc, so is implemented in
samba's libreplace.  By inlining the implementation,
we avoid additional linkage to libreplace.

Not forwarding since proper fix needs proper clean-up
of the #ifdef'fery.

Gbp-Pq: Name inline-openat2.diff

2 months agoinline getprogname replacement
Michael Tokarev [Tue, 20 Jan 2026 19:27:54 +0000 (22:27 +0300)]
inline getprogname replacement

Forwarded: not-needed

Inline getprogname() by using program_invocation_short_name
when available (like with glibc).

This makes a lot of binaries to avoid linkage to libreplace.

This is a short and dirty version, proper change for upstream
should clean up #ifdef'fery in replace.c.

Gbp-Pq: Name inline-getprogname.diff

2 months agokdc: Fix memset_s() calls (fix #1296)
Nicolas Williams [Tue, 20 Jan 2026 22:05:31 +0000 (16:05 -0600)]
kdc: Fix memset_s() calls (fix #1296)

Origin: upstream, https://github.com/heimdal/heimdal/commit/112a82dd2596e228388c50b4c71b3aa816b86add
Forwarded: not-needed

Gbp-Pq: Name heimdal-kdc-fix-memset_s-calls-1296.patch

2 months agoprovide dependencies for libmscat-private-samba.so
Michael Tokarev [Sun, 14 Sep 2025 14:31:16 +0000 (17:31 +0300)]
provide dependencies for libmscat-private-samba.so

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15916
Forwarded: yes, https://bugzilla.samba.org/show_bug.cgi?id=15916

Gbp-Pq: Name libmscat-deps.patch

2 months agoreplace: use __xpg_strerror_r if available
Michael Tokarev [Fri, 7 Feb 2025 07:04:37 +0000 (10:04 +0300)]
replace: use __xpg_strerror_r if available

Forwarded: no

In order to avoid linking libreplace, use __xpg_strerror_r
instead of rep_strerror_r

Gbp-Pq: Name replace-xpg-strerror.patch

2 months agoctdb: use /run/ctdb instead of /var/run/ctdb
Michael Tokarev [Fri, 2 Dec 2022 08:45:01 +0000 (11:45 +0300)]
ctdb: use /run/ctdb instead of /var/run/ctdb

Forwarded: not-needed

Whole upstream path assignment needs a review.

Gbp-Pq: Name ctdb-use-run-instead-of-var-run.patch

2 months agoprint meaningful error message if python3-markdown is not installed
Michael Tokarev [Fri, 2 Dec 2022 08:08:27 +0000 (11:08 +0300)]
print meaningful error message if python3-markdown is not installed

Updated: Mon, 08 Apr 2024 14:14:38 +0300
Debian-Specific: yes
Forwarded: not-needed

Gbp-Pq: Name meaningful-error-if-no-python3-markdown.patch

2 months agoprint meaningful error message if samba-ad-provision is not installed
Michael Tokarev [Fri, 2 Dec 2022 07:54:31 +0000 (10:54 +0300)]
print meaningful error message if samba-ad-provision is not installed

Updated: Thu, 03 Aug 2023 17:06:24 +0300
Debian-Specific: yes
Forwarded: not-needed

Gbp-Pq: Name meaningful-error-if-no-samba-ad-provision.patch

2 months agomove msg.sock from /var/lib/samba to /run/samba
Michael Tokarev [Tue, 26 Apr 2022 13:11:48 +0000 (16:11 +0300)]
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
/run/samba too, but this is a bit more difficult since it is
used in other software.

https://lists.samba.org/archive/samba-technical/2022-April/137322.html

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Gbp-Pq: Name move-msg.sock-from-var-lib-samba-to-run-samba.patch

2 months agodisable setuid configure checks
Michael Tokarev [Fri, 8 Apr 2022 08:50:21 +0000 (11:50 +0300)]
disable setuid configure checks

Forwarded: not-needed

For some strange reason, when running reprotest test on salsa-ci,
which apparently is running as root, - on the *second* build only
the configure fails (after successfully built package the first
time). The configure test tries to change gid and verifies it
actually changed (not that the syscall exist), - and that fails.
Since it is extremely uncommon to configure the build process as
root, salsa-ci test environment details are quite deep down the line,
and we know the syscall actually works, just disable the probe,
pretending we are not root.

For upstream, this probably should be done by removing a *lot* of
configure-time checks which are useless these days.

Gbp-Pq: Name disable-setuid-confchecks.patch

2 months agosilence uselib_local warning produced by waf
Michael Tokarev [Sun, 3 Apr 2022 04:57:38 +0000 (07:57 +0300)]
silence uselib_local warning produced by waf

During config/build process in verbose mode, waf produces
about 2k repetitions of this warning:

  compat: "uselib_local" is deprecated, replace by "use"

which clutters the build log.

Comment this warning out for now until it will be
fixed properly.

Gbp-Pq: Name silence-waf-uselib_local.diff

2 months agocreate ctdb pid directory
Michael Tokarev [Fri, 9 Sep 2022 09:49:55 +0000 (12:49 +0300)]
create ctdb pid directory

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

Gbp-Pq: Name ctdb-create-piddir.patch

2 months agofix pathname for ctdb_etcd_lock
Michael Tokarev [Sat, 2 Apr 2022 14:49:38 +0000 (17:49 +0300)]
fix pathname for ctdb_etcd_lock

Forwarded: not-needed

Specify the actual installation path for this helper script.

This is a quick hack, this issue should be addressed
upstream in a more generic way.

Gbp-Pq: Name ctdb_etcd_lock-path.patch

2 months agouse explicit_bzero() instead of memset_explicit()
Debian Samba Maintainers [Tue, 26 May 2026 12:46:55 +0000 (15:46 +0300)]
use explicit_bzero() instead of memset_explicit()

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

Unfortunately there are just insane amount of similar
but non-standard functions, and upstream don't want
to stay on something simple and robust in this context.

Gbp-Pq: Name use-explicit_bzero-to-zero-memory.diff

2 months agoctdb-config: enable syslog by default
Rafael David Tinoco [Tue, 26 May 2026 12:46:55 +0000 (15:46 +0300)]
ctdb-config: enable syslog by default

Bug-Debian: https://bugs.debian.org/929931
Bug-Ubuntu: https://bugs.launchpad.net/bugs/722201
Last-Update: 2022-03-24
Forwarded: not-needed

CTDB uses /var/log/ctdb/ directory for the default log files. With
syslog disabled, systemd journal is not able to correctly inform
errors happening during service initialization.

Upstream community creates generic config files to be used by different
distributions, so this change makes no big difference to be accepted by
upstream.

With this patch the end user will be able to identify initialization
errors by executing:

  systemctl status ctdb.service

or to follow ctdb logs by executing:

  journalctl -f -u ctdb

Signed-off-by: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
Gbp-Pq: Name ctdb-config-enable-syslog-by-default.patch

2 months agofix nfs related service names
Rafael David Tinoco [Tue, 26 May 2026 12:46:55 +0000 (15:46 +0300)]
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
Last-Update: 2024-07-30

Gbp-Pq: Name fix-nfs-service-name-to-nfs-kernel-server.patch

2 months agodrop "replace" dependency from libldb
Michael Tokarev [Wed, 27 Nov 2024 18:51:50 +0000 (21:51 +0300)]
drop "replace" dependency from libldb

Forwarded: not-needed

When building as a sub-library within samba, where
libreplace is a private library, libldb.so will
have rpath pointing to the private samba dir.  Since
ldb actually does not use anything from libreplace,
just remove the dependency.

Gbp-Pq: Name ldb-no-replace.diff

2 months agoAdd so version number to private libraries for dpkg-shlibdeps
Jeroen Dekkers [Tue, 26 May 2026 12:46:55 +0000 (15:46 +0300)]
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.

Origin: vendor
Forwarded: not-needed

Gbp-Pq: Name add-so-version-to-private-libraries

2 months agoPatch in symbol table from rfc3454, for Heimdal scripts
Brian May [Tue, 26 May 2026 12:46:55 +0000 (15:46 +0300)]
Patch in symbol table from rfc3454, for Heimdal scripts

Forwarded: not-needed

Status: cherry-picked from heimdal package

Gbp-Pq: Name heimdal-rfc3454.txt

2 months agoUse the pager alternative as pager is PAGER is undefined
Steve Langasek [Tue, 26 May 2026 12:46:55 +0000 (15:46 +0300)]
Use the pager alternative as pager is PAGER is undefined

Bug-Debian: http://bugs.debian.org/135603
Forwarded: not-needed

Gbp-Pq: Name smbclient-pager.patch

2 months agoMention smbldap-tools package in examples/LDAP/README
Christian Perrier [Tue, 26 May 2026 12:46:55 +0000 (15:46 +0300)]
Mention smbldap-tools package in examples/LDAP/README

Bug-Debian: http://bugs.debian.org/341934
Forwarded: not-needed

Gbp-Pq: Name README_nosmbldap-tools.patch

2 months agohurd compatibility changes
Michael Tokarev [Thu, 3 Nov 2022 17:49:33 +0000 (20:49 +0300)]
hurd compatibility changes

Hurd does not define PIPE_BUF, so lib/tevent/testsuite.c fails to compile
(yes, this file is used as part of *samba* testsuite, not tevent testsuite).
Define it to a safe minimal value like 512 bytes.

Hurd does not provide SA_NOCLDWAIT define, so lib/util/tests/tfork.c does
not compile. This is only needed during testing to omit zombie process
generation, which has only cosmetic effect.  Define it to be 0.

Based on prior work and ideas by Samuel Thibault.

Gbp-Pq: Name hurd-compat.patch

2 months agoProvide public symbol tdb_logging_function removed upstream without major version...
Jelmer Vernooij [Tue, 26 May 2026 12:46:55 +0000 (15:46 +0300)]
Provide public symbol tdb_logging_function removed upstream without major version change. (bug #511011)

Status: Not forwarded upstream

Gbp-Pq: Name tdb_logging_func.diff

2 months agoforce tdb to be standalone
Michael Tokarev [Tue, 26 Nov 2024 14:28:51 +0000 (17:28 +0300)]
force tdb to be standalone

Forwarded: not-needed

Upstream ships contents of lib/tdb/ as a separate
source of tdb.  Since we build samba anyway, there's
no need to have separate tdb source package, it's
enough to build it during samba build.

Always build tdb as stand-alone library
(instead of being samba-private if in a subdir).

When building as a sub-library within samba,
where libreplace is a private library, libtdb.so
will have rpath pointing to the private samba
dir.  Since tdb actually does not use anything
from libreplace, just remove the dependency.

Gbp-Pq: Name tdb-standalone.diff

2 months agoforce tevent to be standalone
Michael Tokarev [Tue, 26 Nov 2024 14:28:51 +0000 (17:28 +0300)]
force tevent to be standalone

Forwarded: not-needed

Upstream ships contents of lib/tevent/ as a separate
source of tevent.  Since we build samba anyway, there's
no need to have separate tevent source package, it's
enough to build it during samba build.

Always build tevent as stand-alone library
(instead of being samba-private if in a subdir).

When building as a sub-library within samba, where
libreplace is a private library, libtevent.so will
have rpath pointing to the private samba dir.  Since
tevent actually does not use anything from libreplace,
just remove the dependency.

Gbp-Pq: Name tevent-standalone.diff

2 months agoforce talloc to be standalone
Michael Tokarev [Tue, 26 Nov 2024 14:28:51 +0000 (17:28 +0300)]
force talloc to be standalone

Forwarded: not-needed

Upstream ships contents of lib/talloc/ as a separate
source of talloc.  Since we build samba anyway, there's
no need to have separate talloc source package, it's
enough to build it during samba build.

Always build talloc as stand-alone library
(instead of being samba-private if in a subdir).

When building as a sub-library within samba, where
libreplace is a private library, libtalloc.so will
have rpath pointing to the private samba dir.  Since
talloc actually does not use anything from libreplace,
just remove the dependency.

Gbp-Pq: Name talloc-standalone.diff

2 months agoensure libsmbclient.h is being used with LFS enabled
Michael Tokarev [Sat, 2 Apr 2022 16:01:55 +0000 (19:01 +0300)]
ensure libsmbclient.h is being used with LFS enabled

Bug-Debian: https://bugs.debian.org/221618
Forwarded: not-needed

We build samba with LFS (Large File Support) even on 32bits.
This means some types like off_t are 64-bit wide, again,
even on a 32bit host.  libsmbclient.h uses off_t in function
prototypes, and thes prototypes muct match those which were
used at samba compile time - if some other source includes
libsmbclient.h without LFS, it'll get wrong prototypes and
the resulting binary will most likely crash when using
libsmbclient functions.

Detect and error-out this at compile time.

We can not do anything with this in the public header since
it is alredy too late to redefine things, since we can't
guarantee we're the first header a program #includes, and
at the time this libsmbclient.h is included, off_t can
already be defined so our (re)define of _FILE_OFFSET_BITS
does nothing already.

Patching libsmbclient.h to use off64_t means client program
should change their off_t to off64_t too when storing
file offsets returning from libsmbclient, so this is not
an option too.

With this change, we will error out even if the user source
does not use any off_t-related functions. Namely, it was ok
to #include <libsmbclient.h> and use smbc_open/smbc_read/
smbc_write/smbc_close without _F_O_B=64, - neither of these
functions uses off_t. smbc_lseek and others doesn't work,
but if a program does not use them anyway, whole thing will
just work even without enabling LFS.  Ideally we can probably
check each individual function which is being affected, by
replacing it with #error if sizeof(off_t) < 8.  But this
requires quite some hackery...

Gbp-Pq: Name libsmbclient-ensure-lfs-221618.patch

2 months agosamba (2:4.24.3+dfsg-1) unstable; urgency=medium
Michael Tokarev [Tue, 26 May 2026 12:46:55 +0000 (15:46 +0300)]
samba (2:4.24.3+dfsg-1) unstable; urgency=medium

  * This is a security release in order to address the following defects:

    CVE-2026-1933: Missing access checks on reparse point operations

      On a share marked "read only = yes" and on file handles opened R/O users
      can set or delete the reparse point xattrs on files that the user has
      write-access in the file system for.

      https://www.samba.org/samba/security/CVE-2026-1933.html

    CVE-2026-2340: WORM vfs module does not block overwrites

      The WORM (Write-Once, Read Many) vfs module is supposed to lock write
      access to shared files, so they cannot be altered after initial writes.
      It was allowing files to be overwritten by renaming a newly created file
      over a protected file.

      https://www.samba.org/samba/security/CVE-2026-2340.html

    CVE-2026-3012: auto-enrolment GPO installing CA certificate over http
      without verification

      To bootstrap a certificate chain a domain member must fetch a certificate
      without TLS. It was trusting HTTP for this when a more secure encrypted
      LDAP channel was also available.

      https://www.samba.org/samba/security/CVE-2026-3012.html

    CVE-2026-3238: Denial of service against AD DC WINS server

      The WINS server component of the Active Directory Domain controller code
      in Samba is vulnerable to a NULL pointer dereference and crash caused by
      an unauthenticated UDP packet.

      https://www.samba.org/samba/security/CVE-2026-3238.html

    CVE-2026-4408: Unauthenticated Remote Code Execution in Samba DCE/RPC
      SAMR server

      Samba file servers and classic (non-AD) domain controllers with
      samba-dcerpcd started as a system service and with a "check password
      script" that has the %u substitution character are vulnerable to a
      remote code execution.

      https://www.samba.org/samba/security/CVE-2026-4408.html

    CVE-2026-4480: Unauthenticated Remote Code Execution in Samba
      printing subsystem

      Samba print servers with a "print command" that has the %J substitution
      character are vulnerable to a Remote Code Execution.

      https://www.samba.org/samba/security/CVE-2026-4480.html

[dgit import unpatched samba 2:4.24.3+dfsg-1]

2 months agoImport samba_4.24.3+dfsg.orig.tar.xz
Michael Tokarev [Tue, 26 May 2026 12:46:55 +0000 (15:46 +0300)]
Import samba_4.24.3+dfsg.orig.tar.xz

[dgit import orig samba_4.24.3+dfsg.orig.tar.xz]

2 months agoImport samba_4.24.3+dfsg-1.debian.tar.xz
Michael Tokarev [Tue, 26 May 2026 12:46:55 +0000 (15:46 +0300)]
Import samba_4.24.3+dfsg-1.debian.tar.xz

[dgit import tarball samba 2:4.24.3+dfsg-1 samba_4.24.3+dfsg-1.debian.tar.xz]

2 months agoMerge samba (2:4.24.2+dfsg-1) import into refs/heads/workingbranch
Michael Tokarev [Tue, 12 May 2026 18:10:42 +0000 (21:10 +0300)]
Merge samba (2:4.24.2+dfsg-1) import into refs/heads/workingbranch

2 months agocheck for openat2
Michael Tokarev [Tue, 24 Feb 2026 07:19:30 +0000 (10:19 +0300)]
check for openat2

Gbp-Pq: Name check-for-openat2.patch

2 months agoinline openat2 syscall
Michael Tokarev [Wed, 21 Jan 2026 09:20:05 +0000 (12:20 +0300)]
inline openat2 syscall

Forwarded: not-needed

openat2() is not provided by glibc, so is implemented in
samba's libreplace.  By inlining the implementation,
we avoid additional linkage to libreplace.

Not forwarding since proper fix needs proper clean-up
of the #ifdef'fery.

Gbp-Pq: Name inline-openat2.diff

2 months agoinline getprogname replacement
Michael Tokarev [Tue, 20 Jan 2026 19:27:54 +0000 (22:27 +0300)]
inline getprogname replacement

Forwarded: not-needed

Inline getprogname() by using program_invocation_short_name
when available (like with glibc).

This makes a lot of binaries to avoid linkage to libreplace.

This is a short and dirty version, proper change for upstream
should clean up #ifdef'fery in replace.c.

Gbp-Pq: Name inline-getprogname.diff

2 months agokdc: Fix memset_s() calls (fix #1296)
Nicolas Williams [Tue, 20 Jan 2026 22:05:31 +0000 (16:05 -0600)]
kdc: Fix memset_s() calls (fix #1296)

Origin: upstream, https://github.com/heimdal/heimdal/commit/112a82dd2596e228388c50b4c71b3aa816b86add
Forwarded: not-needed

Gbp-Pq: Name heimdal-kdc-fix-memset_s-calls-1296.patch

2 months agoprovide dependencies for libmscat-private-samba.so
Michael Tokarev [Sun, 14 Sep 2025 14:31:16 +0000 (17:31 +0300)]
provide dependencies for libmscat-private-samba.so

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15916
Forwarded: yes, https://bugzilla.samba.org/show_bug.cgi?id=15916

Gbp-Pq: Name libmscat-deps.patch

2 months agoreplace: use __xpg_strerror_r if available
Michael Tokarev [Fri, 7 Feb 2025 07:04:37 +0000 (10:04 +0300)]
replace: use __xpg_strerror_r if available

Forwarded: no

In order to avoid linking libreplace, use __xpg_strerror_r
instead of rep_strerror_r

Gbp-Pq: Name replace-xpg-strerror.patch

2 months agoctdb: use /run/ctdb instead of /var/run/ctdb
Michael Tokarev [Fri, 2 Dec 2022 08:45:01 +0000 (11:45 +0300)]
ctdb: use /run/ctdb instead of /var/run/ctdb

Forwarded: not-needed

Whole upstream path assignment needs a review.

Gbp-Pq: Name ctdb-use-run-instead-of-var-run.patch

2 months agoprint meaningful error message if python3-markdown is not installed
Michael Tokarev [Fri, 2 Dec 2022 08:08:27 +0000 (11:08 +0300)]
print meaningful error message if python3-markdown is not installed

Updated: Mon, 08 Apr 2024 14:14:38 +0300
Debian-Specific: yes
Forwarded: not-needed

Gbp-Pq: Name meaningful-error-if-no-python3-markdown.patch

2 months agoprint meaningful error message if samba-ad-provision is not installed
Michael Tokarev [Fri, 2 Dec 2022 07:54:31 +0000 (10:54 +0300)]
print meaningful error message if samba-ad-provision is not installed

Updated: Thu, 03 Aug 2023 17:06:24 +0300
Debian-Specific: yes
Forwarded: not-needed

Gbp-Pq: Name meaningful-error-if-no-samba-ad-provision.patch

2 months agomove msg.sock from /var/lib/samba to /run/samba
Michael Tokarev [Tue, 26 Apr 2022 13:11:48 +0000 (16:11 +0300)]
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
/run/samba too, but this is a bit more difficult since it is
used in other software.

https://lists.samba.org/archive/samba-technical/2022-April/137322.html

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Gbp-Pq: Name move-msg.sock-from-var-lib-samba-to-run-samba.patch

2 months agodisable setuid configure checks
Michael Tokarev [Fri, 8 Apr 2022 08:50:21 +0000 (11:50 +0300)]
disable setuid configure checks

Forwarded: not-needed

For some strange reason, when running reprotest test on salsa-ci,
which apparently is running as root, - on the *second* build only
the configure fails (after successfully built package the first
time). The configure test tries to change gid and verifies it
actually changed (not that the syscall exist), - and that fails.
Since it is extremely uncommon to configure the build process as
root, salsa-ci test environment details are quite deep down the line,
and we know the syscall actually works, just disable the probe,
pretending we are not root.

For upstream, this probably should be done by removing a *lot* of
configure-time checks which are useless these days.

Gbp-Pq: Name disable-setuid-confchecks.patch

2 months agosilence uselib_local warning produced by waf
Michael Tokarev [Sun, 3 Apr 2022 04:57:38 +0000 (07:57 +0300)]
silence uselib_local warning produced by waf

During config/build process in verbose mode, waf produces
about 2k repetitions of this warning:

  compat: "uselib_local" is deprecated, replace by "use"

which clutters the build log.

Comment this warning out for now until it will be
fixed properly.

Gbp-Pq: Name silence-waf-uselib_local.diff

2 months agocreate ctdb pid directory
Michael Tokarev [Fri, 9 Sep 2022 09:49:55 +0000 (12:49 +0300)]
create ctdb pid directory

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

Gbp-Pq: Name ctdb-create-piddir.patch

2 months agofix pathname for ctdb_etcd_lock
Michael Tokarev [Sat, 2 Apr 2022 14:49:38 +0000 (17:49 +0300)]
fix pathname for ctdb_etcd_lock

Forwarded: not-needed

Specify the actual installation path for this helper script.

This is a quick hack, this issue should be addressed
upstream in a more generic way.

Gbp-Pq: Name ctdb_etcd_lock-path.patch

2 months agouse explicit_bzero() instead of memset_explicit()
Debian Samba Maintainers [Tue, 12 May 2026 18:10:42 +0000 (21:10 +0300)]
use explicit_bzero() instead of memset_explicit()

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

Unfortunately there are just insane amount of similar
but non-standard functions, and upstream don't want
to stay on something simple and robust in this context.

Gbp-Pq: Name use-explicit_bzero-to-zero-memory.diff

2 months agoctdb-config: enable syslog by default
Rafael David Tinoco [Tue, 12 May 2026 18:10:42 +0000 (21:10 +0300)]
ctdb-config: enable syslog by default

Bug-Debian: https://bugs.debian.org/929931
Bug-Ubuntu: https://bugs.launchpad.net/bugs/722201
Last-Update: 2022-03-24
Forwarded: not-needed

CTDB uses /var/log/ctdb/ directory for the default log files. With
syslog disabled, systemd journal is not able to correctly inform
errors happening during service initialization.

Upstream community creates generic config files to be used by different
distributions, so this change makes no big difference to be accepted by
upstream.

With this patch the end user will be able to identify initialization
errors by executing:

  systemctl status ctdb.service

or to follow ctdb logs by executing:

  journalctl -f -u ctdb

Signed-off-by: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
Gbp-Pq: Name ctdb-config-enable-syslog-by-default.patch

2 months agofix nfs related service names
Rafael David Tinoco [Tue, 12 May 2026 18:10:42 +0000 (21:10 +0300)]
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
Last-Update: 2024-07-30

Gbp-Pq: Name fix-nfs-service-name-to-nfs-kernel-server.patch

2 months agodrop "replace" dependency from libldb
Michael Tokarev [Wed, 27 Nov 2024 18:51:50 +0000 (21:51 +0300)]
drop "replace" dependency from libldb

Forwarded: not-needed

When building as a sub-library within samba, where
libreplace is a private library, libldb.so will
have rpath pointing to the private samba dir.  Since
ldb actually does not use anything from libreplace,
just remove the dependency.

Gbp-Pq: Name ldb-no-replace.diff

2 months agoAdd so version number to private libraries for dpkg-shlibdeps
Jeroen Dekkers [Tue, 12 May 2026 18:10:42 +0000 (21:10 +0300)]
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.

Origin: vendor
Forwarded: not-needed

Gbp-Pq: Name add-so-version-to-private-libraries

2 months agoPatch in symbol table from rfc3454, for Heimdal scripts
Brian May [Tue, 12 May 2026 18:10:42 +0000 (21:10 +0300)]
Patch in symbol table from rfc3454, for Heimdal scripts

Forwarded: not-needed

Status: cherry-picked from heimdal package

Gbp-Pq: Name heimdal-rfc3454.txt

2 months agoUse the pager alternative as pager is PAGER is undefined
Steve Langasek [Tue, 12 May 2026 18:10:42 +0000 (21:10 +0300)]
Use the pager alternative as pager is PAGER is undefined

Bug-Debian: http://bugs.debian.org/135603
Forwarded: not-needed

Gbp-Pq: Name smbclient-pager.patch

2 months agoMention smbldap-tools package in examples/LDAP/README
Christian Perrier [Tue, 12 May 2026 18:10:42 +0000 (21:10 +0300)]
Mention smbldap-tools package in examples/LDAP/README

Bug-Debian: http://bugs.debian.org/341934
Forwarded: not-needed

Gbp-Pq: Name README_nosmbldap-tools.patch

2 months agohurd compatibility changes
Michael Tokarev [Thu, 3 Nov 2022 17:49:33 +0000 (20:49 +0300)]
hurd compatibility changes

Hurd does not define PIPE_BUF, so lib/tevent/testsuite.c fails to compile
(yes, this file is used as part of *samba* testsuite, not tevent testsuite).
Define it to a safe minimal value like 512 bytes.

Hurd does not provide SA_NOCLDWAIT define, so lib/util/tests/tfork.c does
not compile. This is only needed during testing to omit zombie process
generation, which has only cosmetic effect.  Define it to be 0.

Based on prior work and ideas by Samuel Thibault.

Gbp-Pq: Name hurd-compat.patch

2 months agoProvide public symbol tdb_logging_function removed upstream without major version...
Jelmer Vernooij [Tue, 12 May 2026 18:10:42 +0000 (21:10 +0300)]
Provide public symbol tdb_logging_function removed upstream without major version change. (bug #511011)

Status: Not forwarded upstream

Gbp-Pq: Name tdb_logging_func.diff

2 months agoforce tdb to be standalone
Michael Tokarev [Tue, 26 Nov 2024 14:28:51 +0000 (17:28 +0300)]
force tdb to be standalone

Forwarded: not-needed

Upstream ships contents of lib/tdb/ as a separate
source of tdb.  Since we build samba anyway, there's
no need to have separate tdb source package, it's
enough to build it during samba build.

Always build tdb as stand-alone library
(instead of being samba-private if in a subdir).

When building as a sub-library within samba,
where libreplace is a private library, libtdb.so
will have rpath pointing to the private samba
dir.  Since tdb actually does not use anything
from libreplace, just remove the dependency.

Gbp-Pq: Name tdb-standalone.diff

2 months agoforce tevent to be standalone
Michael Tokarev [Tue, 26 Nov 2024 14:28:51 +0000 (17:28 +0300)]
force tevent to be standalone

Forwarded: not-needed

Upstream ships contents of lib/tevent/ as a separate
source of tevent.  Since we build samba anyway, there's
no need to have separate tevent source package, it's
enough to build it during samba build.

Always build tevent as stand-alone library
(instead of being samba-private if in a subdir).

When building as a sub-library within samba, where
libreplace is a private library, libtevent.so will
have rpath pointing to the private samba dir.  Since
tevent actually does not use anything from libreplace,
just remove the dependency.

Gbp-Pq: Name tevent-standalone.diff

2 months agoforce talloc to be standalone
Michael Tokarev [Tue, 26 Nov 2024 14:28:51 +0000 (17:28 +0300)]
force talloc to be standalone

Forwarded: not-needed

Upstream ships contents of lib/talloc/ as a separate
source of talloc.  Since we build samba anyway, there's
no need to have separate talloc source package, it's
enough to build it during samba build.

Always build talloc as stand-alone library
(instead of being samba-private if in a subdir).

When building as a sub-library within samba, where
libreplace is a private library, libtalloc.so will
have rpath pointing to the private samba dir.  Since
talloc actually does not use anything from libreplace,
just remove the dependency.

Gbp-Pq: Name talloc-standalone.diff

2 months agoensure libsmbclient.h is being used with LFS enabled
Michael Tokarev [Sat, 2 Apr 2022 16:01:55 +0000 (19:01 +0300)]
ensure libsmbclient.h is being used with LFS enabled

Bug-Debian: https://bugs.debian.org/221618
Forwarded: not-needed

We build samba with LFS (Large File Support) even on 32bits.
This means some types like off_t are 64-bit wide, again,
even on a 32bit host.  libsmbclient.h uses off_t in function
prototypes, and thes prototypes muct match those which were
used at samba compile time - if some other source includes
libsmbclient.h without LFS, it'll get wrong prototypes and
the resulting binary will most likely crash when using
libsmbclient functions.

Detect and error-out this at compile time.

We can not do anything with this in the public header since
it is alredy too late to redefine things, since we can't
guarantee we're the first header a program #includes, and
at the time this libsmbclient.h is included, off_t can
already be defined so our (re)define of _FILE_OFFSET_BITS
does nothing already.

Patching libsmbclient.h to use off64_t means client program
should change their off_t to off64_t too when storing
file offsets returning from libsmbclient, so this is not
an option too.

With this change, we will error out even if the user source
does not use any off_t-related functions. Namely, it was ok
to #include <libsmbclient.h> and use smbc_open/smbc_read/
smbc_write/smbc_close without _F_O_B=64, - neither of these
functions uses off_t. smbc_lseek and others doesn't work,
but if a program does not use them anyway, whole thing will
just work even without enabling LFS.  Ideally we can probably
check each individual function which is being affected, by
replacing it with #error if sizeof(off_t) < 8.  But this
requires quite some hackery...

Gbp-Pq: Name libsmbclient-ensure-lfs-221618.patch

2 months agosamba (2:4.24.2+dfsg-1) unstable; urgency=medium
Michael Tokarev [Tue, 12 May 2026 18:10:42 +0000 (21:10 +0300)]
samba (2:4.24.2+dfsg-1) unstable; urgency=medium

  * new upstream point release

[dgit import unpatched samba 2:4.24.2+dfsg-1]

2 months agoImport samba_4.24.2+dfsg.orig.tar.xz
Michael Tokarev [Tue, 12 May 2026 18:10:42 +0000 (21:10 +0300)]
Import samba_4.24.2+dfsg.orig.tar.xz

[dgit import orig samba_4.24.2+dfsg.orig.tar.xz]

2 months agoImport samba_4.24.2+dfsg-1.debian.tar.xz
Michael Tokarev [Tue, 12 May 2026 18:10:42 +0000 (21:10 +0300)]
Import samba_4.24.2+dfsg-1.debian.tar.xz

[dgit import tarball samba 2:4.24.2+dfsg-1 samba_4.24.2+dfsg-1.debian.tar.xz]

3 months agoMerge version 2:4.23.6+dfsg-1+rpi1 and 2:4.24.1+dfsg-1 to produce 2:4.24.1+dfsg-1... archive/raspbian/2%4.24.1+dfsg-1+rpi1 raspbian/2%4.24.1+dfsg-1+rpi1
Raspbian automatic forward porter [Tue, 21 Apr 2026 16:26:27 +0000 (17:26 +0100)]
Merge version 2:4.23.6+dfsg-1+rpi1 and 2:4.24.1+dfsg-1 to produce 2:4.24.1+dfsg-1+rpi1