From: Tedd Ho-Jeong An <hj.tedd.an@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ] device: Fix not deleting the folder after removing the device
Date: Tue, 7 Jun 2022 22:14:18 -0700 [thread overview]
Message-ID: <20220608051418.197426-1-hj.tedd.an@gmail.com> (raw)
From: Tedd Ho-Jeong An <tedd.an@intel.com>
This patch fixes the issue not deleting the device folder when the
device is removed.
---
src/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/device.c b/src/device.c
index 0d7c62c9c..3da09578f 100644
--- a/src/device.c
+++ b/src/device.c
@@ -4278,7 +4278,7 @@ static void delete_folder_tree(const char *dirname)
if (entry->d_type == DT_UNKNOWN)
entry->d_type = util_get_dt(dirname, entry->d_name);
- create_filename(filename, PATH_MAX, "%s/%s", dirname,
+ snprintf(filename, PATH_MAX, "%s/%s", dirname,
entry->d_name);
if (entry->d_type == DT_DIR)
--
2.25.1
next reply other threads:[~2022-06-08 6:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-08 5:14 Tedd Ho-Jeong An [this message]
2022-06-08 8:19 ` [BlueZ] device: Fix not deleting the folder after removing the device bluez.test.bot
2022-06-10 4:10 ` [PATCH BlueZ] " patchwork-bot+bluetooth
2022-06-10 5:59 ` Sathish Narasimman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220608051418.197426-1-hj.tedd.an@gmail.com \
--to=hj.tedd.an@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox