Message ID | 20180103103123.10950-2-zajec5@gmail.com |
---|---|
State | Accepted |
Delegated to: | John Crispin |
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=65.50.211.133; helo=bombadil.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=lists.infradead.org header.i=@lists.infradead.org header.b="G19AQnhr"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="omrfVVr2"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zBS1G5rxlz9t1t for <incoming@patchwork.ozlabs.org>; Wed, 3 Jan 2018 21:32:34 +1100 (AEDT) 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=7+q1yRO1LCRFSl/A//s6A1EofWr/yH9dkQFWM+AZqec=; b=G19AQnhrhhBEAD qIhlP+VUEqlmNwr2gg2qbfK9UPqj+56Wfz90eHk36KLdFpktEGKfzdsWMMEQ/DlmNpnLTh9kjrKBT vPJnPedn11pZlDAwe/XnmHvNOO+KxBFKi6h+IjDacyg1ZLHJxTkCyvJBn8FlZ3qiIsjTIedg7+aj0 9IeNzkecV0UyTISZZaLeBnRykQis+Wi3LmU7iXeHJvXqNoEkvku7QuF64WILLOt9JATPcn2hFuvCe PfjvsLnhNtan2gMdOWIEnhpYHGUE+J3eRFgrV0vaeB5ZoTBq1A05bgm5yYr0PryyRZz9YiR1SPtYv WIDv/E+1UIqEm02UcvmA==; 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 1eWgLW-0007Qa-Np; Wed, 03 Jan 2018 10:32:30 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWgKs-0006lR-Cb for lede-dev@lists.infradead.org; Wed, 03 Jan 2018 10:31:52 +0000 Received: by mail-lf0-x244.google.com with SMTP id a12so1185701lfe.13 for <lede-dev@lists.infradead.org>; Wed, 03 Jan 2018 02:31:40 -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=0PWAAT5NjBfMPFJKCNFNzeGM2pPxUX7Tg5LCbz71q4k=; b=omrfVVr2f82YD9+D0z1XsawxkUhn/fH76FHaDpirhoT6i+m2K6PWuRCXsQRE314oCd 84FvwvSOeG37K6mEsYLRx1bhxx+T+0YrFPL5SEBF7zi/Lir/uFPj8yzpBsrpdAsx8pZz top3oy2EDIOq3HW1MbDdU3Kb8P+ynZQTWyp/yrxS2OFGyoUzcZuBDWmyJK0UrA9J3+f9 jerqcP0mRHCpoTAAjQJx6hKOROvvbFExjvmKKBHZLV7OTYW30EPx5lpLGMgd2QWsdxMa Xi/mxtq9eSFxjOnd1E+dqwhK5UadLmoElWShzFfPrUxDlWoFe5DIEqfxFeamugNGIPLF iBOA== 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=0PWAAT5NjBfMPFJKCNFNzeGM2pPxUX7Tg5LCbz71q4k=; b=nPcRcO4tLVzXFOEwtq8/utnmfJ5ixCzqc6k2RjxU0hgS2kN6gmhkG23VUJ6IO/1mXh ghBL7Q9siPMiN95LOurl0cwuFeEFWj8lpAJB5JFEERz3ECuAEdwHi7umBs5WEUCaQRDA F1YkEQ22OLaAcBt/Q04ddjz+eIlvbfd3AxlAxWCZvFTQSA6g4Qu4LoQWS+3oGSW/hyuw e/bW0/C9S6QuuAcEb8snBtW89BvuIRnYajTi57eF41GF3NodUriOij11s8UAUMRYJVOm dnoPr/nPIqbusC0OhOfTLLuLqWN5iE6hIwqMcRJjYwiAHa42Y+fmotN5M1ca2qQ7NP55 sLcg== X-Gm-Message-State: AKGB3mL0bJhCzoguS5NNVxt1Zakbu3t93nDuPmaSEKSJls2b2FBG4mfu qr6KYmCLwSG/l4oHsAssqJg= X-Google-Smtp-Source: ACJfBotUw2FnVbgpcIdto6fo0M2AJGDLiDDbIGpjZ94N33lUkyQbpLBM9uypJKOUqtEJABcUxgyl2Q== X-Received: by 10.46.43.86 with SMTP id q83mr640817lje.104.1514975498528; Wed, 03 Jan 2018 02:31:38 -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 i18sm140206ljb.45.2018.01.03.02.31.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jan 2018 02:31:37 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <zajec5@gmail.com> To: John Crispin <john@phrozen.org>, lede-dev@lists.infradead.org Date: Wed, 3 Jan 2018 11:31:22 +0100 Message-Id: <20180103103123.10950-2-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180103103123.10950-1-zajec5@gmail.com> References: <20180103103123.10950-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180103_023150_485212_71C0827E X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. 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:244 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (zajec5[at]gmail.com) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (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_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [LEDE-DEV] [PATCH mountd 2/3] mount: remove directory if mounting fails 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/3] mount: call hotplug mount scripts only on success
|
expand
|
diff --git a/mount.c b/mount.c index 803acc1..a88ca6d 100644 --- a/mount.c +++ b/mount.c @@ -292,8 +292,10 @@ int mount_new(char *path, char *dev) pid = waitpid(pid, &ret, 0); ret = WEXITSTATUS(ret); log_printf("----------> mount ret = %d\n", ret); - if(ret && (ret != 0xff)) + if (ret && ret != 0xff) { + rmdir(tmp); return -1; + } if(mount_wait_for_disc(mount->dev) == 0) { mount->mounted = 1;