Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2672099pxb; Mon, 11 Jan 2021 16:45:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZ24ccznmLmu0vqcNSe9yr5rDCVzSY+IfRJzknvX5ZP9DaXTB+YMd2afzo3KFu1srGJHLV X-Received: by 2002:a50:fd88:: with SMTP id o8mr1401222edt.386.1610412328718; Mon, 11 Jan 2021 16:45:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610412328; cv=none; d=google.com; s=arc-20160816; b=McdeojWinb+DrODZF4u+SCdw5uJSXcCW279Umhh8GciyY+YuuDdfFYzrsiFPGdM7zb xYKgvf+YvbZt1Y8VEFRQi1NUj2s8BVAHE/luUSVw7XJY0YL7/Wh/I8Z6CaNYDoS5w1ED 7roDZZC8nUdFm3M1B14ZnGSmkvMWRvwQWyD9VuhFstoMygXd8ha5BlQH5kzhSmGXd90b z5jWWnYJ2tGlhWhvNqlOuUclSabJx6VtJwWCbq5OM4YMkzRtgZbiN66Um9b/Fpm3BL5A eEkEqLNCsGVeLq/cb42OGJxRvxXm2bKNf5ESMy3sgc/SH5Wc8Bdvmwqs62ZlJII+NJ1B Xe4w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IKNVKscwp3JvtxPBI4WqEArnW4bCi7CAHTd98YlJvdQ=; b=VLhb9FHyioRDxpeAaB/lJKrQ/Phdn/B/itz/6orquQYGH8uQ4fEGAqSKQP5tmQp99W kw9lf4+W6R69g0g+xOmVrs1PdYUyNgK19TXMHSwJWXrjyIWn/p/rr4GOFkz6dSRZIzBi IvxqHSaldPMUfX+fsLHXAQwKrHlu7QsJxISlg1LLY9E6h6Wz6onNQfXEO7wwtiKZzfSz t95Wpkkvb/J3y9DNWY+gxUjp8dVkuIg43/hExbcbzGokAoNnBl6NM4TrWhBGkZRkp26T oDbDP/NAR8QwV9zy1VKbuTocSwyQIqvtt2hqnymp7MSLW4mmxE3nY+Vab42H4fWYj+OV pkTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uVRE5tdr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si410256ejn.17.2021.01.11.16.45.05; Mon, 11 Jan 2021 16:45:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uVRE5tdr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728417AbhAKNBe (ORCPT + 99 others); Mon, 11 Jan 2021 08:01:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:48886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728455AbhAKNBd (ORCPT ); Mon, 11 Jan 2021 08:01:33 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4F98B229C4; Mon, 11 Jan 2021 13:00:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610370031; bh=Bw66MLSjIB+PJWcyGEpfYuDnTbHjUiYkQ52L7EeBa98=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uVRE5tdrsklSRO0WwoGwCYM8l6EffdeYMl7IvOea568HX6VHuFqQTAMlouzNK09Vz m2oFxR0q8p2+4q8bVvVC/EQbuHNZdDsMJLcJmrl8GLZy5LkRBhGry3DIC+qVMkycIv boUCuO+9eecRBZNM3Fna+gsyYRARjyZI2/KsZhnI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Torvalds , Sasha Levin , Sedat Dilek Subject: [PATCH 4.4 04/38] depmod: handle the case of /sbin/depmod without /sbin in PATH Date: Mon, 11 Jan 2021 14:00:36 +0100 Message-Id: <20210111130032.686802531@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210111130032.469630231@linuxfoundation.org> References: <20210111130032.469630231@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Torvalds [ Upstream commit cedd1862be7e666be87ec824dabc6a2b05618f36 ] Commit 436e980e2ed5 ("kbuild: don't hardcode depmod path") stopped hard-coding the path of depmod, but in the process caused trouble for distributions that had that /sbin location, but didn't have it in the PATH (generally because /sbin is limited to the super-user path). Work around it for now by just adding /sbin to the end of PATH in the depmod.sh script. Reported-and-tested-by: Sedat Dilek Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- scripts/depmod.sh | 2 ++ 1 file changed, 2 insertions(+) --- a/scripts/depmod.sh +++ b/scripts/depmod.sh @@ -14,6 +14,8 @@ if ! test -r System.map ; then exit 0 fi +# legacy behavior: "depmod" in /sbin, no /sbin in PATH +PATH="$PATH:/sbin" if [ -z $(command -v $DEPMOD) ]; then echo "Warning: 'make modules_install' requires $DEPMOD. Please install it." >&2 echo "This is probably in the kmod package." >&2