samba.git
11 months agoUse the pager alternative as pager is PAGER is undefined
Steve Langasek [Mon, 6 Jan 2025 18:20:31 +0000 (21:20 +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

11 months agoMention smbldap-tools package in examples/LDAP/README
Christian Perrier [Mon, 6 Jan 2025 18:20:31 +0000 (21:20 +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

11 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

11 months agoProvide public symbol tdb_logging_function removed upstream without major version...
Jelmer Vernooij [Mon, 6 Jan 2025 18:20:31 +0000 (21:20 +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

11 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

11 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

11 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

11 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

11 months agosamba (2:4.21.3+dfsg-1) unstable; urgency=medium
Michael Tokarev [Mon, 6 Jan 2025 18:20:31 +0000 (21:20 +0300)]
samba (2:4.21.3+dfsg-1) unstable; urgency=medium

  * new upstream stable/bugfix release:
   - https://bugzilla.samba.org/show_bug.cgi?id=6750:
     After 'machine password timeout' /etc/krb5.keytab is not updated
   - https://bugzilla.samba.org/show_bug.cgi?id=15697:
     Compound rename from Mac clients can fail with
     NT_STATUS_INTERNAL_ERROR if the file has a lease
   - https://bugzilla.samba.org/show_bug.cgi?id=15701:
     More possible replication loops against Azure AD
   - https://bugzilla.samba.org/show_bug.cgi?id=15724:
     vfs crossrename seems not work correctly
   - https://bugzilla.samba.org/show_bug.cgi?id=15755:
     Avoid event failure race when disabling an event script
   - https://bugzilla.samba.org/show_bug.cgi?id=15758:
     Segfault in vfs_btrfs
   - https://bugzilla.samba.org/show_bug.cgi?id=15765:
     Fix heap-user-after-free with association groups
   - https://bugzilla.samba.org/show_bug.cgi?id=15771:
     Memory leak wbcCtxLookupSid
  * d/patches/: specify more Forwarded: urls
  * d/patches/: source3-lib-util_sec.c-include-grp.h-for-setgroups.patch >
                include-grp.h-for-setgroups-in-a-few-places.patch:
    add 1 more place for setgroups()
  * d/rules: remember last versions of ldb/talloc/tevent/tdb, reality check
  * d/control: since we don't use debconf anymore, no need
    to (build-)depend on po-debconf either

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

11 months agoImport samba_4.21.3+dfsg.orig.tar.xz
Michael Tokarev [Mon, 6 Jan 2025 18:20:31 +0000 (21:20 +0300)]
Import samba_4.21.3+dfsg.orig.tar.xz

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

11 months agoImport samba_4.21.3+dfsg-1.debian.tar.xz
Michael Tokarev [Mon, 6 Jan 2025 18:20:31 +0000 (21:20 +0300)]
Import samba_4.21.3+dfsg-1.debian.tar.xz

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