[PATCH BlueZ] device: Fix not deleting the folder after removing the device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Tedd Ho-Jeong An <tedd.an@xxxxxxxxx>

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




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux