Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2289616iof; Wed, 8 Jun 2022 01:33:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJo/I9lVzUe1s1uPrqGUBTv9fZE2sBUICa0zfP9uiXr4OoCFog6/KWQ6bB0rIciunEnI5G X-Received: by 2002:a63:8449:0:b0:3fc:85a5:5b69 with SMTP id k70-20020a638449000000b003fc85a55b69mr28696721pgd.261.1654677187828; Wed, 08 Jun 2022 01:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654677187; cv=none; d=google.com; s=arc-20160816; b=NLdpX9FJWo+nLuQptL1NEyPwQHSE/vXa9Tp7dccDMWoEWCbKH8Qy+Cj9B5dYIZYNL6 zgIDAN3bQazm58WoWRPFgJv/LuUVY+UfEzzq//jU1qJcuGESwatYtLsJXRCyiR5ZNng6 iuNae7/ADkDstn/6o+ME6Q5CPmQEzBsWWBlkGYoHEkVZ9D0vq5QmfGBhn1tnIT8Kyupb K6Rt9Ic+Wngf0LQLIGpzfI79o+6niEQC8HHqjd+jgfuedhzH+w6JSZntR/oHrnXkmQqN XgGvKefRCcYFF06HDzWMvUXHwRbxlS7Ua2hfxpS7IIq+8ITrRwUuuhQouitflL+Cqvo5 2yog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=+vseFj2SFtAgppL+WH1FRsDTUkpoJwy/aLLwga0CVfg=; b=XXtlnhNx/lrdmVcW/DfpbP+553FfYphQoppe6hWXo6fo7rsUwX3Us0eBWPUR8y4gL1 q8f0om1thvgVlYuUjAhJe7YeKuu/l2Wkhc9a8q+/t8XE4sR4kOndUhcZMaM3o52aMMrV mqtAKNAZsQ08WvIj2Dx6nOnxx5nkLK51ogVO6FvaV17RJxg2oa476v7LifPI4VSRj6QX sn4xVTxyvaIW7cCJ8o8/LsFlfNESttp5RN5oxxj74B6DNFWqOYsAVQMHsVmEeu3ex1mj yy5T+1wgFlU1DEW3Yd9GB+KykJo7IU05cjLkIa7p8Oy/y2JrKQcOqWeugwn7LG1klH4G Lf1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lqZXJunW; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ot12-20020a17090b3b4c00b001e8693cbf54si15877190pjb.183.2022.06.08.01.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:33:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lqZXJunW; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2DEDB2A68B8; Wed, 8 Jun 2022 01:00:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235281AbiFHG5X (ORCPT + 99 others); Wed, 8 Jun 2022 02:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241703AbiFHGIj (ORCPT ); Wed, 8 Jun 2022 02:08:39 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEB02154350 for ; Tue, 7 Jun 2022 22:14:58 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id 15so17397671pfy.3 for ; Tue, 07 Jun 2022 22:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=+vseFj2SFtAgppL+WH1FRsDTUkpoJwy/aLLwga0CVfg=; b=lqZXJunWIeJO+Vlb5nkGG6a1UxzDMaSLM+MkQ9NwElTf+00+ZyQdsQFxpc+Ozu/t2q wuCVkOUQbr8yb2qcwJrflE5I9ntrsc9xC3LP2SJBN8FYe2de4GgQ8X6MfoHQvj6E+yyM b5+CbG6XkOZL0D1c7lgMKxvY0i6W7BrOqBYWal8es3JPF3MGwn6JkaxtFkVl7cJf43ek MNdrn9byHSJ3Dczdg2CHAg+KRm5VdSNOkt0UlCU8f1qyw6DMTEjnTFrIR/eqIc7rjvP+ ajseE9/cwzQEe+XJBYrI5Ra06PNvykOqoFd+GPLTSk2gjM1SFAzk+ZIwhY4WI8qCtXc2 3zgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=+vseFj2SFtAgppL+WH1FRsDTUkpoJwy/aLLwga0CVfg=; b=FHi+F1sKNUDIIyHI9HJOwCjzi0Q1aGUFkUZRv/2uj+OsHLqLvknUJgrvtDTaY3xFuZ If7jhfRUpP7wMANrhog1JzhU0wYNzLC8risAR33TiIVzA6On4D6o1NhKVsEDtRgLVobU THq8uRZIJ0fjy4SaqKzfLK3XOR9sDpSJgWbpvGqQgfbSWPgkx9lCvCDy1hXJU8+Yp3A4 XBKi/QhDu/nDKhp6k1SAV3vrrnm60OkrMOSyEk1OhLWYOWjbnHNUjSATX+ghk5S3JG+u Gz2oh4zFxuXhd2V2QzQGObmvYNtaQb/z09NIzJlI+aSLEt9k91qw0xZWywJSFthGsAwH h4/Q== X-Gm-Message-State: AOAM531Moipl8w7qNo7pf5Mkk/ch1U2B7f9ckoDoltcA6vaOUTWCQrgP SbQh1874lDgQl5/74pRDToyHW/6Sdy9hyg== X-Received: by 2002:a62:b515:0:b0:50a:3d51:671e with SMTP id y21-20020a62b515000000b0050a3d51671emr32918428pfe.48.1654665259516; Tue, 07 Jun 2022 22:14:19 -0700 (PDT) Received: from han1-ubuntu-dev.cust.blueprintrf.com ([65.57.73.2]) by smtp.gmail.com with ESMTPSA id z28-20020aa7991c000000b0050dc76281bdsm13806219pff.151.2022.06.07.22.14.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:14:19 -0700 (PDT) From: Tedd Ho-Jeong An 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 Message-Id: <20220608051418.197426-1-hj.tedd.an@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Tedd Ho-Jeong An 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