The Samba-Bugzilla – Attachment 18113 Details for
Bug 15481
GETREALFILENAME_CACHE can modify incoming new filename with previous cache entry value.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
"raw" patch
bradley-fix (text/plain), 3.92 KB, created by
Jeremy Allison
on 2023-09-20 17:19:46 UTC
(
hide
)
Description:
"raw" patch
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2023-09-20 17:19:46 UTC
Size:
3.92 KB
patch
obsolete
>From Volker.Lendecke@sernet.de Tue Sep 19 17:46:56 2023 >Return-path: <Volker.Lendecke@sernet.de> >Envelope-to: jra@samba.org >Delivery-date: Wed, 20 Sep 2023 00:46:56 +0000 >Received: from mail.sernet.de ([2a0a:a3c0:0:25::217:2]:46281) > by hr2.samba.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__CHACHA20_POLY1305:256) > (Exim) > id 1qilMi-00EOBw-1n > for jra@samba.org; > Wed, 20 Sep 2023 00:46:56 +0000 >DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sernet.de; > s=20210621-rsa; h=Content-Type:MIME-Version:Reply-To:Message-ID:Subject:To: > From:Date:Sender:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: > Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: > In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: > List-Post:List-Owner:List-Archive; > bh=EFcEygPIJvtImkrO/ZA0Pc1K2Ltj/k3NfO3lBJu2mys=; b=WUisLCoeUQ+2vFZbVWgEWdm8tK > eeXYz2fWPwgwtyqRCJjw9wtxnr2O2sDeV9Gry0GNKjV3ZbLXQ6OP9F8MvfywIZLQTBLuwnfb+BynM > /ISct8TOiR2VLYGdaWgrclroGnKAMvCLMa4ohtHmrScgm7dEJCg4AzaM6whyAFtnjbihtE7rPU55M > IxDG3revfLOL+22VVEd2aWNX6s26eiZwAD7xi5ukm6vxp6Gg/1QxqiIs2QrPx/AgHhdaPl9YbVKYf > XiAuQxa/fW0HGuXzHcGtI1678+teCc4yIvtgUcRcJjNpdOxktxpHgthAT6ITVk+fCfFBTOxxnbc4L > 7a7eF/qQ==; >DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; > d=sernet.de; s=20210621-ed25519; h=Content-Type:MIME-Version:Reply-To: > Message-ID:Subject:To:From:Date:Sender:Cc:Content-Transfer-Encoding: > Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: > Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: > List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; > bh=EFcEygPIJvtImkrO/ZA0Pc1K2Ltj/k3NfO3lBJu2mys=; b=vpUPxyTdWboDu4mzTEi/4Y6gYc > CoH373k7zdFrtEJ9/nPZ296P7PB9M2qL58KR1pR5wm8JkTgVtCcMzcoNIPCA==; >Received: from intern.sernet.de by mail.sernet.de > with esmtps (Exim Mail Transfer Agent) > for jra@samba.org > id 1qilMh-00AcfC-LF; Wed, 20 Sep 2023 02:46:51 +0200 >Received: by intern.sernet.de > id 1qilMg-00821n-N0; Wed, 20 Sep 2023 02:46:51 +0200 >Date: Wed, 20 Sep 2023 02:46:47 +0200 >From: Volker Lendecke <Volker.Lendecke@sernet.de> >To: jra@samba.org >Subject: bradley fix >Message-ID: <ZQpA91ZlW68zmP/O@sernet.de> >Reply-To: Volker.Lendecke@sernet.de >MIME-Version: 1.0 >Content-Type: multipart/mixed; boundary="wejLPiOQ/bEwP8hs" >Content-Disposition: inline >Status: RO >Content-Length: 1594 >Lines: 56 > > >--wejLPiOQ/bEwP8hs >Content-Type: text/plain; charset=us-ascii >Content-Disposition: inline > > > >--wejLPiOQ/bEwP8hs >Content-Type: text/plain; charset=us-ascii >Content-Disposition: attachment; filename="to_jra.txt" >Content-Transfer-Encoding: quoted-printable > >=46rom 98baf86faa6508c574ed438003174bf69aa36d9b Mon Sep 17 00:00:00 2001 >=46rom: Volker Lendecke <vl@samba.org> >Date: Tue, 19 Sep 2023 17:44:56 -0700 >Subject: [PATCH] Bradley fix > >--- > source3/smbd/filename.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c >index dcd08a06947..57bd7c51ea4 100644 >--- a/source3/smbd/filename.c >+++ b/source3/smbd/filename.c >@@ -784,6 +784,7 @@ static NTSTATUS openat_pathref_fsp_case_insensitive( >=20 > if (lp_stat_cache()) { > char *base_name =3D smb_fname_rel->base_name; >+ char *original_relname =3D NULL; > DATA_BLOB value =3D { .data =3D NULL }; >=20 > ok =3D get_real_filename_cache_key( >@@ -805,7 +806,7 @@ static NTSTATUS openat_pathref_fsp_case_insensitive( > } > DO_PROFILE_INC(statcache_hits); >=20 >- TALLOC_FREE(smb_fname_rel->base_name); >+ original_relname =3D smb_fname_rel->base_name; > smb_fname_rel->base_name =3D talloc_memdup( > smb_fname_rel, value.data, value.length); > if (smb_fname_rel->base_name =3D=3D NULL) { >@@ -827,6 +828,8 @@ static NTSTATUS openat_pathref_fsp_case_insensitive( > } >=20 > memcache_delete(NULL, GETREALFILENAME_CACHE, cache_key); >+ TALLOC_FREE(smb_fname_rel->base_name); >+ smb_fname_rel->base_name =3D original_relname; > } >=20 > lookup: >--=20 >2.39.2 > > >--wejLPiOQ/bEwP8hs-- >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 15481
:
18113
|
18114