Message ID | 20180212110153.4432-2-zajec5@gmail.com |
---|---|
State | Accepted |
Delegated to: | Rafał Miłecki |
Headers | show
Return-Path: <lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1236::1; helo=casper.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="Om5nZZTF"; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jfdMMRFY"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="JKAuKzUy"; dkim-atps=neutral Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zg31Z4SC4z9t34 for <incoming@patchwork.ozlabs.org>; Mon, 12 Feb 2018 22:13:06 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:References:In-Reply-To: Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=GNh0cqJWpzfb4HQoySbKEUPVz1TCnnRFqusS7g03EEA=; b=Om5nZZTFpIJ9+ycJsoUxZDKSo UNVaZI2WLb7WlvEsP08YtHNQ88E4paYd84KaW8sjWF1Ub05GCO9LQza3O96KlyQa4kVQFA2fTosFT zEj98VHA2tyhm8kKOKC9CEFVAHgpa07AJhscJg1D7F25pkjK2TUDsXPZciweZIcbTyeRr+tSGH2v8 c5TUxCqaUkioXP1h46/UFqFbavr9rnnZLbGGVRf4MhfEHXWVMDJi+epKhkxn29sY+OkrmuqcNm8C5 8x3ex7agPAP7+z1G6EHqXtxQMwhnoDs2au+bScOzZyQ73G5BrAqjETx9mN7A3Ew5JZOfufP1YgBMo xzuUnhfSg==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elC2Z-0008O9-Hf for incoming@patchwork.ozlabs.org; Mon, 12 Feb 2018 11:12:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GNh0cqJWpzfb4HQoySbKEUPVz1TCnnRFqusS7g03EEA=; b=jfdMMRFY1ftzIS 5Cg/tiNHdauVoIDqanWlggvAoU73zuf56jhamjqhsfKfNGwKvS9PsdnHf6lGkt7SjAh5SApGsy4y3 /JZfgsg8orrgLYlYzFIria1cn+3p+d1aqDR5dKXacwLYAiHYN95rNe2G5EyFPmLgEmL9ilCQeqQx+ r9JiSHI/XMilg7RrJmE0Nn7LwnWBthTRf3uFItJ7uNlCMGrx5yZlI83zUUI677VqWzl1mXibeyhNZ 345Uxw3KQ1Ot0hvuAoVKAWEd0WVm0SpxNankunZB5Ec5Kp4F2QeYvu7iVgHecF6nAauumGkFUo0md dMud+PGaRcUyDhzLpfgA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elBsl-00076H-GB; Mon, 12 Feb 2018 11:02:47 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elBsL-0006Gl-6V for lede-dev@lists.infradead.org; Mon, 12 Feb 2018 11:02:24 +0000 Received: by mail-lf0-x241.google.com with SMTP id f136so19867251lff.8 for <lede-dev@lists.infradead.org>; Mon, 12 Feb 2018 03:02:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RDt4kzn47aRZEvWyiADKGFnUGCMwdCI0BkYsqRtFpME=; b=JKAuKzUydxN6YB61i21RwsGuNVQ9voF80NQ7tVFnmau8rjJE2iIi1dnR/T6x8Rrlo9 zIJWi6uU1KoArMSvWZtA7oYliYIriasn9oej4adcLSdsqK4raBoUknDmmf+ZrqH0q4h9 sXCm1jFPOWcSXQHTGY2pLA/KTaA/NYP7VFfv3C6IhPH+MJTOtpfTkPT5ZO1a6AQXnzuX UDmmm1HxBLJXOChGhPJnE3VRrj01kxWqKXVYCJoW9KQ8Mtaj8jLGQhsY2S4iBbzafupL ywtMS4pt7hfxDtz+g42JB27ThP/MNQPFYr7gaAPbz+QTlpSJa8JZ4CHqCj0fnBs+HfWi pAfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RDt4kzn47aRZEvWyiADKGFnUGCMwdCI0BkYsqRtFpME=; b=oz3zFRydadbgNOVXSePBjotUGEMJkL7o47tcVX604WoiS3sXoAKXVjjiPKsP/U2zRL yTCiVU+aFlmBjUy/t4YzRKhb64xMlqkiwlVMuJrTTLT7pCiQvZBQy85MOmC9ziaeJJi4 NzlHgeEVRCV6KrQE3EA+QNpLUSmOXTFPDMjS7OsadoDMcRWVKUBXkdt6syIISt5Eq31D ElCPwSda6q/x3JwCDQRCaM819V4xWxtS7HS3/KNw1BecTpFGQqm4XFbP8RoyoZSJW3ap 0BwPoZwaMhS5UnAS0zUbzhjZ/czOD+gxbEonbO/gDvOjZpXKbSVcScz0Nm+nd5YROF7I +hMw== X-Gm-Message-State: APf1xPCEjvu8HltEIQYgQRE0qF3JTxI2UPxs0EmRymfAMy3LQmbxx2/K WIM+P6n0HF/vlzRoZUDPD5Y= X-Google-Smtp-Source: AH8x225+cvTzSb0LbQ5Ru9C2vusmqNigZavxXuJrCzALH/PUyUCap0oQ9CTRaotMsGAq9JZZqRbi6Q== X-Received: by 10.25.208.210 with SMTP id h201mr6711040lfg.22.1518433329046; Mon, 12 Feb 2018 03:02:09 -0800 (PST) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id b78sm1552734ljf.87.2018.02.12.03.02.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Feb 2018 03:02:08 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <zajec5@gmail.com> To: John Crispin <john@phrozen.org>, lede-dev@lists.infradead.org Date: Mon, 12 Feb 2018 12:01:53 +0100 Message-Id: <20180212110153.4432-2-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180212110153.4432-1-zajec5@gmail.com> References: <20180212110153.4432-1-zajec5@gmail.com> MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:4010:c07:0:0:0:241 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zajec5[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (zajec5[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [LEDE-DEV] [PATCH mountd 2/2] mount: drop duplicated rmdir() call from the mount_enum_drives() X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <lede-dev.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/lede-dev>, <mailto:lede-dev-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/lede-dev/> List-Post: <mailto:lede-dev@lists.infradead.org> List-Help: <mailto:lede-dev-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/lede-dev>, <mailto:lede-dev-request@lists.infradead.org?subject=subscribe> Cc: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <rafal@milecki.pl> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "Lede-dev" <lede-dev-bounces@lists.infradead.org> Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
[LEDE-DEV,mountd,1/2] mount: drop duplicated unlink() call from the mount_dev_del()
|
expand
|
diff --git a/mount.c b/mount.c index aa346ff..bf5fbfd 100644 --- a/mount.c +++ b/mount.c @@ -760,11 +760,9 @@ static void mount_enum_drives(void) p->prev->next = p->next; p->next->prev = p->prev; p = p->next; - log_printf("removing %s\n", q->dev); if (q->status == STATUS_MOUNTED || q->status == STATUS_EXPIRED) { - snprintf(tmp, 64, "%s%s", "/tmp/run/mountd/", q->dev); - rmdir(tmp); snprintf(tmp, 64, "%s%s", uci_path, q->name); + log_printf("unlinking %s\n", tmp); unlink(tmp); system_printf("ACTION=remove DEVICE=%s NAME=%s /sbin/hotplug-call mount", q->dev, q->name); }