[Pkg-samba-maint] [Git][samba-team/samba][master] 2 commits: widelinks-nofollow.patch (from https://bugzilla.samba.org/show_bug.cgi?id=15841)
Michael Tokarev (@mjt)
gitlab at salsa.debian.org
Wed Apr 2 12:36:44 BST 2025
Michael Tokarev pushed to branch master at Debian Samba Team / samba
Commits:
6b725706 by Michael Tokarev at 2025-04-02T14:33:59+03:00
widelinks-nofollow.patch (from https://bugzilla.samba.org/show_bug.cgi?id=15841)
Closes: #1101581
- - - - -
d3bd7d20 by Michael Tokarev at 2025-04-02T14:35:04+03:00
update changelog; upload version 4.22.0+dfsg-3 to unstable
- - - - -
3 changed files:
- debian/changelog
- debian/patches/series
- + debian/patches/widelinks-nofollow.patch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+samba (2:4.22.0+dfsg-3) unstable; urgency=medium
+
+ * widelinks-nofollow.patch (https://bugzilla.samba.org/show_bug.cgi?id=15841)
+ (Closes: #1101581)
+
+ -- Michael Tokarev <mjt at tls.msk.ru> Wed, 02 Apr 2025 14:34:31 +0300
+
samba (2:4.22.0+dfsg-2) unstable; urgency=medium
* smbd-fix-handling-of-directory-leases-and-oplock-lev.patch
=====================================
debian/patches/series
=====================================
@@ -24,3 +24,4 @@ ctdb-use-run-instead-of-var-run.patch
revert-ldb-use-hexchars_upper-from-replace.h.patch
replace-xpg-strerror.patch
smbd-fix-handling-of-directory-leases-and-oplock-lev.patch
+widelinks-nofollow.patch
=====================================
debian/patches/widelinks-nofollow.patch
=====================================
@@ -0,0 +1,33 @@
+From: Volker Lendecke <vl at samba.org>
+Origin: upstream, https://bugzilla.samba.org/show_bug.cgi?id=15841
+Forwarded: yes, https://bugzilla.samba.org/show_bug.cgi?id=15841
+Bug-Debian: https://bugs.debian.org/1101581
+Bug: https://bugzilla.samba.org/show_bug.cgi?id=15841
+
+ source3/modules/vfs_widelinks.c | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/source3/modules/vfs_widelinks.c b/source3/modules/vfs_widelinks.c
+index 4339f6de9e0..80620a31f93 100644
+--- a/source3/modules/vfs_widelinks.c
++++ b/source3/modules/vfs_widelinks.c
+@@ -354,15 +354,14 @@ static int widelinks_openat(vfs_handle_struct *handle,
+ struct widelinks_config,
+ return -1);
+
+- if (config->active &&
+- (config->cwd != NULL) &&
+- !(smb_fname->flags & SMB_FILENAME_POSIX_PATH))
+- {
++ if (config->active && (config->cwd != NULL)) {
+ /*
+ * Module active, openat after chdir (see note 1b above) and not
+ * a POSIX open (POSIX sees symlinks), so remove O_NOFOLLOW.
+ */
+- how.flags = (how.flags & ~O_NOFOLLOW);
++ how.flags = (how.flags & ~(O_NOFOLLOW | O_PATH));
++ how.resolve = (how.resolve &
++ ~(VFS_OPEN_HOW_RESOLVE_NO_SYMLINKS));
+ }
+
+ ret = SMB_VFS_NEXT_OPENAT(handle,
View it on GitLab: https://salsa.debian.org/samba-team/samba/-/compare/f5c450ad1d4102a513549b99aff57fa36405655c...d3bd7d20876747703fdf91c6695208b214948327
--
View it on GitLab: https://salsa.debian.org/samba-team/samba/-/compare/f5c450ad1d4102a513549b99aff57fa36405655c...d3bd7d20876747703fdf91c6695208b214948327
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20250402/02cc9501/attachment-0001.htm>
More information about the Pkg-samba-maint
mailing list