Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ] device: Fix cache update on device remove
@ 2026-06-08 12:27 Frédéric Danis
  2026-06-08 15:41 ` [BlueZ] " bluez.test.bot
  2026-06-08 18:20 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Frédéric Danis @ 2026-06-08 12:27 UTC (permalink / raw)
  To: linux-bluetooth

If there's no other group than the one explicitly removed the length
returned by g_key_file_to_data() will be 0 and currently nothing
will be changed in the device cache file.

If there's nothing to write, remove the device cache file.
---
 src/device.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/device.c b/src/device.c
index bea893301..046c8017e 100644
--- a/src/device.c
+++ b/src/device.c
@@ -5469,6 +5469,8 @@ static void device_remove_stored(struct btd_device *device)
 								gerr->message);
 			g_error_free(gerr);
 		}
+	} else {
+		unlink(filename);
 	}
 
 	g_free(data);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [BlueZ] device: Fix cache update on device remove
  2026-06-08 12:27 [PATCH BlueZ] device: Fix cache update on device remove Frédéric Danis
@ 2026-06-08 15:41 ` bluez.test.bot
  2026-06-08 18:20 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2026-06-08 15:41 UTC (permalink / raw)
  To: linux-bluetooth, frederic.danis

[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1107813

---Test result---

Test Summary:
CheckPatch                    PASS      0.31 seconds
GitLint                       PASS      0.22 seconds
BuildEll                      PASS      17.71 seconds
BluezMake                     PASS      653.12 seconds
CheckSmatch                   PASS      313.99 seconds
bluezmakeextell               PASS      166.43 seconds
IncrementalBuild              PASS      616.69 seconds
ScanBuild                     PASS      909.63 seconds



https://github.com/bluez/bluez/pull/2194

---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH BlueZ] device: Fix cache update on device remove
  2026-06-08 12:27 [PATCH BlueZ] device: Fix cache update on device remove Frédéric Danis
  2026-06-08 15:41 ` [BlueZ] " bluez.test.bot
@ 2026-06-08 18:20 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2026-06-08 18:20 UTC (permalink / raw)
  To: =?utf-8?b?RnLDqWTDqXJpYyBEYW5pcyA8ZnJlZGVyaWMuZGFuaXNAY29sbGFib3JhLmNvbT4=?=
  Cc: linux-bluetooth

Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Mon,  8 Jun 2026 14:27:13 +0200 you wrote:
> If there's no other group than the one explicitly removed the length
> returned by g_key_file_to_data() will be 0 and currently nothing
> will be changed in the device cache file.
> 
> If there's nothing to write, remove the device cache file.
> ---
>  src/device.c | 2 ++
>  1 file changed, 2 insertions(+)

Here is the summary with links:
  - [BlueZ] device: Fix cache update on device remove
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=279c4ac70c77

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-08 18:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-08 12:27 [PATCH BlueZ] device: Fix cache update on device remove Frédéric Danis
2026-06-08 15:41 ` [BlueZ] " bluez.test.bot
2026-06-08 18:20 ` [PATCH BlueZ] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox