From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74400: 31.0.50; tramp-loaddefs.elc suddenly owned by root Date: Fri, 03 Jan 2025 09:55:30 +0200 Message-ID: <867c7cib65.fsf@gnu.org> References: <871pz9q1ge.fsf@web.de> <86wmh1vmy0.fsf@gnu.org> <87wmh1oksp.fsf@web.de> <875xol92h1.fsf@gmx.de> <87serpoh2g.fsf@web.de> <87plmtpamy.fsf@web.de> <87y11h6iow.fsf@gmx.de> <86ed38vh9k.fsf@gnu.org> <877c8z8u9r.fsf@gmx.de> <86ldxfte12.fsf@gnu.org> <86ed1lhqps.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32742"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, 74400@debbugs.gnu.org, michael.albinus@gmx.de To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 03 08:56:25 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tTcXg-0008Kj-OL for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jan 2025 08:56:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTcXM-0000L2-0w; Fri, 03 Jan 2025 02:56:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTcXK-0000Km-Hj for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 02:56:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTcXK-0000cI-8i for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 02:56:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=fgFih57Pv6KLT5O1OJO1NuVJ8HZTLFqXvjgA/NylfeY=; b=g8TW5oLLn/Dow5Jcm5aBHkQefGoOB2BaXRuVu8dxMH2wwHH5XNF/+GS3Os+LZD/LdXb1njiyyJSmCW2CHB1/YhzRmbDt+yCRB3KMaHWv88gd5AFC1ixY4QUA3ZAwNfyewI7dBrFALlyjBFpKPRTIp16lvAIxBDoRVhqm50ZqgrzNhVZg+3BTQt1O+MPDGKTXcTCQsBGbnqU1+sjZVBW4ad/mbF8TXHO9X2R07gqPmfSGfNHvcRlaCvDZQuDARAgPTsV9AQln46PYlLBet02DmZ1jmf8mZDUX1alnNqZQt0+VZ29gRXvpiZOwzYeVMPPNkq5VP+LrHDKGiKqhvzJcyg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTcXK-0008Lx-2r for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 02:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2025 07:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74400 X-GNU-PR-Package: emacs Original-Received: via spool by 74400-submit@debbugs.gnu.org id=B74400.173589094732087 (code B ref 74400); Fri, 03 Jan 2025 07:56:02 +0000 Original-Received: (at 74400) by debbugs.gnu.org; 3 Jan 2025 07:55:47 +0000 Original-Received: from localhost ([127.0.0.1]:49365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTcX1-0008LQ-H2 for submit@debbugs.gnu.org; Fri, 03 Jan 2025 02:55:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35190) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTcWy-0008LD-VK for 74400@debbugs.gnu.org; Fri, 03 Jan 2025 02:55:41 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTcWs-0000YX-8I; Fri, 03 Jan 2025 02:55:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fgFih57Pv6KLT5O1OJO1NuVJ8HZTLFqXvjgA/NylfeY=; b=e6AHFM8PFZ+K 5iaS5ZJ3T5e2o8kCBPJESj+I8/kkMPc3HpfyEiIY50qPQdSANqJ+iDLDBoH3sFyw5qhJ5eReHnsCq apkARP2mhUEwcqK6WaLBImv0zAhgUlHa8T0QyAhGXGq4ljje5ts7iIbUdJxkq9C/kVdOVexhPlwCt QbTs9WRG7eMoKHAEjv0kO+Jd2nr5xadEbYigAYHGLLac9B85l/fgaWQZDZvISljkd6aInZKUY2PwQ L3dfSaCI/Tdqif5sAbsMOfuE7+miwpr04ZOo7iN9Zwr7rWrx1DIbgho+0Pstp5Zs8GE2tMgIhtZz5 08lhCmZsSBtJf1Lva4q4kQ==; In-Reply-To: (message from Stefan Kangas on Thu, 2 Jan 2025 15:20:11 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298255 Archived-At: > From: Stefan Kangas > Date: Thu, 2 Jan 2025 15:20:11 -0600 > Cc: michael.albinus@gmx.de, michael_heerdegen@web.de, 74400@debbugs.gnu.org > > Eli Zaretskii writes: > > >> From: Stefan Kangas > >> Date: Thu, 2 Jan 2025 14:13:31 -0600 > >> Cc: michael_heerdegen@web.de, 74400@debbugs.gnu.org > >> > >> Eli Zaretskii writes: > >> > >> >> From: Michael Albinus > >> >> Cc: michael_heerdegen@web.de, 74400-done@debbugs.gnu.org > >> >> Date: Tue, 19 Nov 2024 10:09:20 +0100 > >> >> > >> >> My example doesn't claim to be the recipe which happened to Michael. But > >> >> it shows, that 'sudo make install' could create root-owned files in the > >> >> build dir, and that's what this bug report is about. > >> >> > >> >> I don't know whether it is important enough to change something. But we > >> >> should know (and document), that it could happen. > >> > > >> > If it's important enough, maybe. > >> > > >> > I think "make install" uses chmod to give everyone access to the file > >> > because some files could be owned by root. If that works, why is the > >> > ownership important? > >> > >> Does everyone get write rights, though? If not, how can you run > >> commands like "git clean -fxd" as a regular root after "make install"? > > > > Sorry, I don't follow: "make install" writes to the installation > > directory, and invokes chmod on the files installed there, whereas > > "git clean -fxd" is run on the Git repository, which is a different > > directory entirely. What am I missing? > > AFAIU, the issue here is that "sudo make install" can create root-owned > files in the build directory. That can only happen if one runs "sudo make install" before running "make", i.e. if "make install" finds that some files in the build directory are outdated.