[arch-commits] Commit in samba/trunk (2 files)

Tobias Powalowski tpowa at gemini.archlinux.org
Wed Apr 27 20:38:54 UTC 2022


    Date: Wednesday, April 27, 2022 @ 20:38:54
  Author: tpowa
Revision: 444141

upgpkg: samba 4.16.0-6: fix FS#74259

Added:
  samba/trunk/70b9977a46e5242174b4461a7f49d5f640c1db62.patch
Modified:
  samba/trunk/PKGBUILD

------------------------------------------------+
 70b9977a46e5242174b4461a7f49d5f640c1db62.patch |   41 +++++++++++++++++++++++
 PKGBUILD                                       |   13 +++++--
 2 files changed, 51 insertions(+), 3 deletions(-)

Added: 70b9977a46e5242174b4461a7f49d5f640c1db62.patch
===================================================================
--- 70b9977a46e5242174b4461a7f49d5f640c1db62.patch	                        (rev 0)
+++ 70b9977a46e5242174b4461a7f49d5f640c1db62.patch	2022-04-27 20:38:54 UTC (rev 444141)
@@ -0,0 +1,41 @@
+From 70b9977a46e5242174b4461a7f49d5f640c1db62 Mon Sep 17 00:00:00 2001
+From: Elia Geretto <elia.f.geretto at gmail.com>
+Date: Fri, 11 Mar 2022 19:32:30 +0100
+Subject: [PATCH] s3:libsmb: Fix errno for failed authentication in
+ SMBC_server_internal()
+
+In SMBC_server_internal(), when authentication fails, the errno value is
+currently hard-coded to EPERM, while it should be EACCES instead. Use the
+NT_STATUS map to set the appropriate value.
+
+This bug was found because it breaks listing printers protected by
+authentication in GNOME Control Panel.
+
+BUG: https://bugzilla.samba.org/show_bug.cgi?id=14983
+
+Signed-off-by: Elia Geretto <elia.f.geretto at gmail.com>
+Reviewed-by: Jeremy Allison <jra at samba.org>
+Reviewed-by: Volker Lendecke <vl at samba.org>
+
+Autobuild-User(master): Jeremy Allison <jra at samba.org>
+Autobuild-Date(master): Wed Mar 16 19:44:18 UTC 2022 on sn-devel-184
+---
+ source3/libsmb/libsmb_server.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c
+index b92477c88fe..09d27868c0e 100644
+--- a/source3/libsmb/libsmb_server.c
++++ b/source3/libsmb/libsmb_server.c
+@@ -572,7 +572,7 @@ SMBC_server_internal(TALLOC_CTX *ctx,
+ 		    !NT_STATUS_IS_OK(cli_session_setup_anon(c))) {
+ 
+                         cli_shutdown(c);
+-                        errno = EPERM;
++			errno = map_errno_from_nt_status(status);
+                         return NULL;
+                 }
+ 	}
+-- 
+GitLab
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-27 20:38:35 UTC (rev 444140)
+++ PKGBUILD	2022-04-27 20:38:54 UTC (rev 444141)
@@ -11,7 +11,7 @@
 pkgbase=samba
 pkgname=('smbclient' 'samba')
 pkgver=4.16.0
-pkgrel=5
+pkgrel=6
 arch=(x86_64)
 url="https://www.samba.org"
 license=('GPL3')
@@ -28,15 +28,22 @@
 source=(https://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar{.gz,.asc}
         samba.logrotate
         samba.pam
-        samba.conf)
+        samba.conf
+        70b9977a46e5242174b4461a7f49d5f640c1db62.patch)
 validpgpkeys=('81F5E2832BD2545A1897B713AA99442FB680B620') #Samba Distribution Verification Key <samba-bugs at samba.org>
 sha512sums=('cea6bab64021779d217669e58612d192b907c2c481ef30e40e449bc6b8f8993a9b7b7b5bfcfebe54d8f70b8f720893cfa77a9d674ef8e07dd45a55a0fbc673e2'
             'SKIP'
             '2ba0691ded467e4d6e40821f6de58c00f8962209efe2e60284c0c87756ab471c22c3d63b77d506e48c90ed0d852a2a24e41be1d499cf74a73cb99da0b503c858'
             '1e6183ab0eb812b3ef687ac2c26ce78f7cb30540f606d20023669ac00ba04075487fb72e4dc89cc05dab0269ff6aca98fc1167cc75669c225b88b592482fbf67'
-            'e46ee848baabb261e7468ecee43aba4d001a24f86f5322ae522abdb75030fd0ebd9063b9df0be3576c4d1654d81331f5e389aee16ec2fa138259ae4728e94efc')
+            'e46ee848baabb261e7468ecee43aba4d001a24f86f5322ae522abdb75030fd0ebd9063b9df0be3576c4d1654d81331f5e389aee16ec2fa138259ae4728e94efc'
+            'a453d171c5335a457b1a4b1107460e723458c215258d330bdfc50084de15b66f15aa05e7386c1f976cc8634c8410213ac85831b9d6a61cc8b2a166e5c8303278')
 ### UNINSTALL dmapi package before building!!!
 
+prepare () {
+  cd samba-${pkgver}
+  patch -Np1 -i ../70b9977a46e5242174b4461a7f49d5f640c1db62.patch
+}
+
 build() {
   # Use samba-pkg as a staging directory for the split packages
   # (This is so RPATHS and symlinks are generated correctly via



More information about the arch-commits mailing list