GNU bug report logs - #54286
[PATCH] Fix ls -l triggering automounts.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: Rohan Sable <rsable@HIDDEN>; Keywords: patch; dated Mon, 7 Mar 2022 07:57:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 54286 <at> debbugs.gnu.org:


Received: (at 54286) by debbugs.gnu.org; 7 Mar 2022 17:15:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 07 12:15:14 2022
Received: from localhost ([127.0.0.1]:54570 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nRGx0-0004px-1B
	for submit <at> debbugs.gnu.org; Mon, 07 Mar 2022 12:15:14 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:40760)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1nRGwy-0004iL-CH
 for 54286 <at> debbugs.gnu.org; Mon, 07 Mar 2022 12:15:13 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 51D9F1601A9;
 Mon,  7 Mar 2022 09:15:06 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id 8WZQ46Mocyk7; Mon,  7 Mar 2022 09:15:00 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id A7F4C1601A8;
 Mon,  7 Mar 2022 09:15:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id Iv3wGeDjcFRR; Mon,  7 Mar 2022 09:15:00 -0800 (PST)
Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com
 [172.91.119.151])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 75DD91601A7;
 Mon,  7 Mar 2022 09:15:00 -0800 (PST)
Message-ID: <84e223c0-9682-62dc-217e-adf298ccb658@HIDDEN>
Date: Mon, 7 Mar 2022 09:14:49 -0800
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
 Thunderbird/91.5.0
Subject: Re: [PATCH] fcntl-h: add AT_NO_AUTOMOUNT
Content-Language: en-US
To: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
References: <20220307140851.967887-1-P@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
In-Reply-To: <20220307140851.967887-1-P@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 54286
Cc: 54286 <at> debbugs.gnu.org, bug-gnulib@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On 3/7/22 06:08, P=C3=A1draig Brady wrote:
> * lib/fcntl.in.h: Define AT_NO_AUTOMOUNT to 0 where not defined.
> This is available on Linux since 2.6.38.

Looks good.

Please feel free to install this sort of thing without waiting for review=
.




Information forwarded to bug-coreutils@HIDDEN:
bug#54286; Package coreutils. Full text available.

Message received at 54286 <at> debbugs.gnu.org:


Received: (at 54286) by debbugs.gnu.org; 7 Mar 2022 15:51:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 07 10:51:34 2022
Received: from localhost ([127.0.0.1]:54455 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nRFe2-0000Bg-4t
	for submit <at> debbugs.gnu.org; Mon, 07 Mar 2022 10:51:34 -0500
Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:24051)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kdudka@HIDDEN>) id 1nRFdy-0000BV-5M
 for 54286 <at> debbugs.gnu.org; Mon, 07 Mar 2022 10:51:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
 s=mimecast20190719; t=1646668289;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=jhtyZDH92kM2QDaiEEaZDxcrHYjbkESwsR/4JtcvBck=;
 b=UJsdg5APwzqRD1AAtm0TA8lkZBHQ7CSwhBp62F0RL5n6kmGydHE0CPb4xTXVC0pWyiz1x6
 xZFhNJ50JbFIxLCuVKlFJT/xkWT0eON3NInm3uAsoyojfctFpgr2qwUphFvuw0K45t+cRc
 LLeqURGfk8ztAGc7HRyTE8t/NmOUrPU=
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
 [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS
 (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 us-mta-369-T62JMnS0PHiGrnVzGS_tNA-1; Mon, 07 Mar 2022 10:51:28 -0500
X-MC-Unique: T62JMnS0PHiGrnVzGS_tNA-1
Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com
 [10.5.11.14])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2CFDF824FA9;
 Mon,  7 Mar 2022 15:51:27 +0000 (UTC)
Received: from nbkamil.localnet (unknown [10.43.7.71])
 by smtp.corp.redhat.com (Postfix) with ESMTPS id 810377C039;
 Mon,  7 Mar 2022 15:51:19 +0000 (UTC)
From: Kamil Dudka <kdudka@HIDDEN>
To: Rohan Sable <rsable@HIDDEN>, 54286 <at> debbugs.gnu.org,
 =?ISO-8859-1?Q?P=E1draig?= Brady <P@HIDDEN>
Subject: Re: bug#54286: [PATCH] Fix ls -l triggering automounts.
Date: Mon, 07 Mar 2022 16:51:18 +0100
Message-ID: <2817663.e9J7NaK4W3@nbkamil>
In-Reply-To: <39e46da0-2994-b1ef-784b-eee8b550738e@HIDDEN>
References: <YiW6GsaQT0ZuhuZC@HIDDEN>
 <39e46da0-2994-b1ef-784b-eee8b550738e@HIDDEN>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14
Authentication-Results: relay.mimecast.com;
 auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kdudka@HIDDEN
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 54286
Cc: ikent@HIDDEN, rohanjsable@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Monday, March 7, 2022 3:26:27 PM CET P=E1draig Brady wrote:
> Updated patch for ls attached as per discussion.
> Added a NEWS entry.

Works as expected.  Thank you both!

Kamil






Information forwarded to bug-coreutils@HIDDEN:
bug#54286; Package coreutils. Full text available.

Message received at 54286 <at> debbugs.gnu.org:


Received: (at 54286) by debbugs.gnu.org; 7 Mar 2022 14:26:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 07 09:26:37 2022
Received: from localhost ([127.0.0.1]:52795 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nREJo-0001hj-Oy
	for submit <at> debbugs.gnu.org; Mon, 07 Mar 2022 09:26:37 -0500
Received: from mail-wm1-f53.google.com ([209.85.128.53]:53002)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pixelbeat@HIDDEN>) id 1nREJn-0001hX-Ep
 for 54286 <at> debbugs.gnu.org; Mon, 07 Mar 2022 09:26:35 -0500
Received: by mail-wm1-f53.google.com with SMTP id r65so9305999wma.2
 for <54286 <at> debbugs.gnu.org>; Mon, 07 Mar 2022 06:26:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=sender:message-id:date:mime-version:user-agent:subject
 :content-language:to:cc:references:from:in-reply-to;
 bh=bzIC0HaTZGSpT4cBmqboWVzpYAR40IN+MXJzjWWogvQ=;
 b=dtx0rR751c/0Z8khVUATsdhYmJroL9YGhjbq0lL/sGLFdHlbzsHsGyMKImmSim4gBg
 wUE/ZOaGUKpNFmTQZoVaFl4X3/EGu0TKpjXi3cZPdNd2K7UxtA0W2Hui2L7nMb07l0Q3
 0wPs+2MElqvK7rfkGs/xj82vViBlib3NIIvSyF8W5GjIjBc3ZoGUuiNcwwbpGdfq8i18
 IzQxIH0Ce3TWosFgh+TGmiGML6BVt64xCD1XPQX2p09A38ZcQvpjeBa2WFDV2BnF3PR9
 i8GQhkRbXcHe4KeRTGE7g9D3/behaWi4SPoxxBg6g1bsrdbTrCM7Y1El+iN+Kq6QF2/B
 1Rgw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:sender:message-id:date:mime-version:user-agent
 :subject:content-language:to:cc:references:from:in-reply-to;
 bh=bzIC0HaTZGSpT4cBmqboWVzpYAR40IN+MXJzjWWogvQ=;
 b=2qwr6I8muSpUgB7BM8MZ/GhmWZq0zpINO2yTpsKQOG0dxo73uAG8lX6aDO2X6W/xzE
 15aDENUSeN47D7/TZebhM3oGLWF87EIJ9Ud2Bg6s0cvPfkLVugBC2dnA86ZPOnYF+n6a
 Nax2TSQpGfy7PbYzUAlD7zff/R4xhIMgrbpuzrJAbcq4URZivaCEZVRmKfcgdh1qbbC4
 It4k2gj1c/SvP4ltg1e3CMBVKQyfGHHR5xkczCtvcduIyjr6JV9Ch/oehA7+fKc6YKlv
 TIDR/0h594zZGW9P11vKZKC2dCWTAcBErU2n/hv7+LZdaVnUpv+fNQvBp5r0JGJALksS
 TZGg==
X-Gm-Message-State: AOAM53048VLndwSjcN7h8+5cioE5vF0TPOHmgDPwfvELLfgitMu0/rMs
 Ny7IwTwGEYtQ2fptYaeAtFM=
X-Google-Smtp-Source: ABdhPJwqUZeMmN+Lt2Mfdk9Tp4W/sTIx0a91d+gS31zSYYaGJTihBUw4HT7sARA0/6frAvHTmBrAlg==
X-Received: by 2002:a1c:ed18:0:b0:37e:7a1d:a507 with SMTP id
 l24-20020a1ced18000000b0037e7a1da507mr18467424wmh.187.1646663189563; 
 Mon, 07 Mar 2022 06:26:29 -0800 (PST)
Received: from [192.168.1.9]
 (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175])
 by smtp.googlemail.com with ESMTPSA id
 s17-20020adfdb11000000b001f02d5fea43sm12439039wri.98.2022.03.07.06.26.28
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 07 Mar 2022 06:26:28 -0800 (PST)
Content-Type: multipart/mixed; boundary="------------l4O4urNydJH1nVcVbEYsJhor"
Message-ID: <39e46da0-2994-b1ef-784b-eee8b550738e@HIDDEN>
Date: Mon, 7 Mar 2022 14:26:27 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101
 Thunderbird/97.0
Subject: Re: bug#54286: [PATCH] Fix ls -l triggering automounts.
Content-Language: en-US
To: Rohan Sable <rsable@HIDDEN>, 54286 <at> debbugs.gnu.org
References: <YiW6GsaQT0ZuhuZC@HIDDEN>
From: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
In-Reply-To: <YiW6GsaQT0ZuhuZC@HIDDEN>
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 54286
Cc: ikent@HIDDEN, rohanjsable@HIDDEN, kdudka@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

This is a multi-part message in MIME format.
--------------l4O4urNydJH1nVcVbEYsJhor
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Updated patch for ls attached as per discussion.
Added a NEWS entry.
--------------l4O4urNydJH1nVcVbEYsJhor
Content-Type: text/x-patch; charset=UTF-8; name="ls-no-automount.patch"
Content-Disposition: attachment; filename="ls-no-automount.patch"
Content-Transfer-Encoding: base64

RnJvbSBlNGM3ZmNjYzBjMDU3YTc3MmI2YmUzZjAwMjAwM2JhMDA1Y2M4OWQ3IE1vbiBTZXAg
MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBSb2hhbiBTYWJsZSA8cnNhYmxlQHJlZGhhdC5jb20+
CkRhdGU6IE1vbiwgNyBNYXIgMjAyMiAxNDoxNDoxMyArMDAwMApTdWJqZWN0OiBbUEFUQ0hd
IGxzOiBhdm9pZCB0cmlnZ2VyaW5nIGF1dG9tb3VudHMKCnN0YXR4KCkgaGFzIGRpZmZlcmVu
dCBkZWZhdWx0cyB3cnQgYXV0b21vdW50aW5nCmNvbXBhcmVkIHRvIHN0YXQoKSBvciBsc3Rh
dCgpLCBzbyBleHBsaWNpdGx5CnNldCB0aGUgQVRfTk9fQVVUT01PVU5UIGZsYWcgdG8gc3Vw
cHJlc3MgdGhhdCBiZWhhdmlvciwKYW5kIGF2b2lkIHVuaW50ZW5kZWQgb3BlcmF0aW9ucyBv
ciBwb3RlbnRpYWwgZXJyb3JzLgoKKiBzcmMvbHMuYyAoZG9fc3RhdHgpOiBQYXNzIEFUX05P
X0FVVE9NT1VOVCB0byBhdm9pZCB0aGlzIGJlaGF2aW9yLgoqIE5FV1M6IE1lbnRpb24gdGhl
IGJ1ZyBmaXguCgpTaWduZWQtb2ZmLWJ5OiBSb2hhbiBTYWJsZSA8cnNhYmxlQHJlZGhhdC5j
b20+Ci0tLQogTkVXUyAgICAgfCA0ICsrKysKIHNyYy9scy5jIHwgMiArLQogMiBmaWxlcyBj
aGFuZ2VkLCA1IGluc2VydGlvbnMoKyksIDEgZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS9O
RVdTIGIvTkVXUwppbmRleCBhZjY1OTZiMDYuLjEyMDUxY2QxNSAxMDA2NDQKLS0tIGEvTkVX
UworKysgYi9ORVdTCkBAIC0zNCw2ICszNCwxMCBAQCBHTlUgY29yZXV0aWxzIE5FV1MgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAtKi0gb3V0bGluZSAtKi0KICAgYW5k
IHRoZSBkb2N1bWVudGF0aW9uIGhhcyBiZWVuIGNsYXJpZmllZCBmb3IgdW51c3VhbCBjYXNl
cy4KICAgW2J1ZyBpbnRyb2R1Y2VkIGluIGNvcmV1dGlscy03LjBdCiAKKyAgbHMgbm8gbG9u
Z2VyIHRyaWVzIHRvIGF1dG9tb3VudCBmaWxlcywgcmV2ZXJ0aW5nIHRvIHRoZSBiZWhhdmlv
cgorICBiZWZvcmUgdGhlIHN0YXR4KCkgY2FsbCB3YXMgaW50cm9kdWNlZC4KKyAgW2J1ZyBp
bnRyb2R1Y2VkIGluIGNvcmV1dGlscy04LjMyXQorCiAgIE9uIG1hY09TLCAnbXYgQSBCJyBu
byBsb25nZXIgZmFpbHMgd2l0aCAiT3BlcmF0aW9uIG5vdCBzdXBwb3J0ZWQiCiAgIHdoZW4g
QSBhbmQgQiBhcmUgaW4gdGhlIHNhbWUgdG1wZnMgZmlsZSBzeXN0ZW0uCiAgIFtidWcgaW50
cm9kdWNlZCBpbiBjb3JldXRpbHMtOS4wXQpkaWZmIC0tZ2l0IGEvc3JjL2xzLmMgYi9zcmMv
bHMuYwppbmRleCAxOTMwZTRhYmIuLjI1NTc4OTA2MSAxMDA2NDQKLS0tIGEvc3JjL2xzLmMK
KysrIGIvc3JjL2xzLmMKQEAgLTExNzcsNyArMTE3Nyw3IEBAIGRvX3N0YXR4IChpbnQgZmQs
IGNoYXIgY29uc3QgKm5hbWUsIHN0cnVjdCBzdGF0ICpzdCwgaW50IGZsYWdzLAogewogICBz
dHJ1Y3Qgc3RhdHggc3R4OwogICBib29sIHdhbnRfYnRpbWUgPSBtYXNrICYgU1RBVFhfQlRJ
TUU7Ci0gIGludCByZXQgPSBzdGF0eCAoZmQsIG5hbWUsIGZsYWdzLCBtYXNrLCAmc3R4KTsK
KyAgaW50IHJldCA9IHN0YXR4IChmZCwgbmFtZSwgZmxhZ3MgfCBBVF9OT19BVVRPTU9VTlQs
IG1hc2ssICZzdHgpOwogICBpZiAocmV0ID49IDApCiAgICAgewogICAgICAgc3RhdHhfdG9f
c3RhdCAoJnN0eCwgc3QpOwotLSAKMi4yNi4yCgo=

--------------l4O4urNydJH1nVcVbEYsJhor--




Information forwarded to bug-coreutils@HIDDEN:
bug#54286; Package coreutils. Full text available.

Message received at 54286 <at> debbugs.gnu.org:


Received: (at 54286) by debbugs.gnu.org; 7 Mar 2022 14:09:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 07 09:09:09 2022
Received: from localhost ([127.0.0.1]:52780 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nRE2v-0001Hs-Jb
	for submit <at> debbugs.gnu.org; Mon, 07 Mar 2022 09:09:09 -0500
Received: from smtp.magicbluesmoke.com ([52.210.84.128]:55700
 helo=mail.magicbluesmoke.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <P@HIDDEN>) id 1nRE2u-0001Hf-3h
 for 54286 <at> debbugs.gnu.org; Mon, 07 Mar 2022 09:09:08 -0500
Received: from localhost.localdomain
 (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net [95.44.90.175])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 29D00453CA6;
 Mon,  7 Mar 2022 14:09:02 +0000 (UTC)
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <P@HIDDEN>
To: bug-gnulib@HIDDEN
Subject: [PATCH] fcntl-h: add AT_NO_AUTOMOUNT
Date: Mon,  7 Mar 2022 14:08:51 +0000
Message-Id: <20220307140851.967887-1-P@HIDDEN>
X-Mailer: git-send-email 2.26.2
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 54286
Cc: 54286 <at> debbugs.gnu.org, =?UTF-8?q?P=C3=A1draig=20Brady?= <P@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* lib/fcntl.in.h: Define AT_NO_AUTOMOUNT to 0 where not defined.
This is available on Linux since 2.6.38.
---
 ChangeLog      | 6 ++++++
 lib/fcntl.in.h | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index c5a80fd3f3..e3f0ed216c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-03-07  Pádraig Brady  <P@HIDDEN>
+
+	fcntl-h: add AT_NO_AUTOMOUNT
+	* lib/fcntl.in.h: Define AT_NO_AUTOMOUNT to 0 where not defined.
+	This is available on Linux since 2.6.38.
+
 2022-03-01  Paul Eggert  <eggert@HIDDEN>
 
 	Create lib/Makefile.am after gnulib-comp.m4
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h
index 3e0c302af3..9270ced897 100644
--- a/lib/fcntl.in.h
+++ b/lib/fcntl.in.h
@@ -435,6 +435,10 @@ _GL_WARN_ON_USE (openat, "openat is not portable - "
 # define AT_EACCESS 4
 #endif
 
+/* Ignore this flag if not supported.  */
+#ifndef AT_NO_AUTOMOUNT
+# define AT_NO_AUTOMOUNT 0
+#endif
 
 #endif /* _@GUARD_PREFIX@_FCNTL_H */
 #endif /* _@GUARD_PREFIX@_FCNTL_H */
-- 
2.26.2





Information forwarded to bug-coreutils@HIDDEN:
bug#54286; Package coreutils. Full text available.

Message received at 54286 <at> debbugs.gnu.org:


Received: (at 54286) by debbugs.gnu.org; 7 Mar 2022 13:33:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 07 08:33:53 2022
Received: from localhost ([127.0.0.1]:52746 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nRDUn-0000Nv-Ci
	for submit <at> debbugs.gnu.org; Mon, 07 Mar 2022 08:33:53 -0500
Received: from mail-wr1-f50.google.com ([209.85.221.50]:35329)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pixelbeat@HIDDEN>) id 1nRDUl-0000Nd-AM
 for 54286 <at> debbugs.gnu.org; Mon, 07 Mar 2022 08:33:51 -0500
Received: by mail-wr1-f50.google.com with SMTP id b5so23345069wrr.2
 for <54286 <at> debbugs.gnu.org>; Mon, 07 Mar 2022 05:33:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=sender:message-id:date:mime-version:user-agent:subject
 :content-language:to:cc:references:from:in-reply-to
 :content-transfer-encoding;
 bh=VFDyWPpOcILpeua12czqLFfg5wNBkl7EK30ZH65fLWM=;
 b=V5hEIrDNh/7BeW6FJffyB6br0guPIjQxfIOfqZZMXsUBFsU+pWj6L7b6HaFTq5DOzD
 DWq3xbP50cE2MRvfT7FBG7CtjJKeunAvcfgnEq+jvQBI6ukI7A1GZwnMOLC+QuF6lkYR
 WivMEedUbC9qpTB/E9XnaSoQxu6T9vzCdwqpukb1w6hyq4d6kaqxWmckHA/MrcGY7EF1
 UTet+qqdEpsoyF5C0THqt62ogehi6jk93t2G9KhDqhh3/Ne2uQ1mrPMZVxCJXdzwbCvv
 rzLUgvJ86U7HnF8DXeq2nOt2lIYLLBaR+g9R/1xV6OjsOUMXOd1trMXRt/OhQErpjBq2
 DqHw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:sender:message-id:date:mime-version:user-agent
 :subject:content-language:to:cc:references:from:in-reply-to
 :content-transfer-encoding;
 bh=VFDyWPpOcILpeua12czqLFfg5wNBkl7EK30ZH65fLWM=;
 b=5P1vSLL6EggJxfW4cw8hefV5P5oKSCnyLTXXuU6e1LL0a66lBa2N+8WWS9zHzmbQmD
 xvVWUgpRAlcOXZUYnPpSeplDPKoQ27/LtzBPlBxCQyV+DDeEhhQvEdaJasQ0Y77/0+/i
 HUY0fuItiLX0xbm/KoKx/+m59OVfWbwzlu9I/HY540EsXcyibOXmNUb7b/RPSObc/HkJ
 6LbLJFee1auiU/0Qzx0omWoXPMLUcTZdg4JJSN91fFqAW5dPL1kbzfNDAmUVIfNHe/BR
 hKx8/hmMokyTKxoH0lXiu+wWUpp2avQnkAARDTBYEL0GCuFaYhwqKbvnHCdZ2MhC1AZ6
 R47w==
X-Gm-Message-State: AOAM532Dqs554ZA3xhYKWN3rv21xxzPAEUXt+xOtMmKHXZWbVxDEOLlD
 LuDAtAxrvoTpFcRve4PdM1U=
X-Google-Smtp-Source: ABdhPJxd3b6vUH4mNjMccq5P3UYifFxnuwhgTem3cI4vG6DHGwlt68mLZdRdUwmvdlUV4roKb0riXQ==
X-Received: by 2002:a5d:4aca:0:b0:1f0:7a8c:3505 with SMTP id
 y10-20020a5d4aca000000b001f07a8c3505mr8416283wrs.337.1646660025195; 
 Mon, 07 Mar 2022 05:33:45 -0800 (PST)
Received: from [192.168.1.9]
 (95-44-90-175-dynamic.agg2.lod.rsl-rtd.eircom.net. [95.44.90.175])
 by smtp.googlemail.com with ESMTPSA id
 w9-20020a5d6089000000b001f0256761b9sm19201972wrt.45.2022.03.07.05.33.43
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 07 Mar 2022 05:33:44 -0800 (PST)
Message-ID: <eef871dd-aa44-bd2d-50a8-9bae67c653d5@HIDDEN>
Date: Mon, 7 Mar 2022 13:33:43 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101
 Thunderbird/97.0
Subject: Re: bug#54286: [PATCH] Fix ls -l triggering automounts.
Content-Language: en-US
To: Rohan Sable <rsable@HIDDEN>, 54286 <at> debbugs.gnu.org
References: <YiW6GsaQT0ZuhuZC@HIDDEN>
From: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
In-Reply-To: <YiW6GsaQT0ZuhuZC@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 54286
Cc: ikent@HIDDEN, rohanjsable@HIDDEN, kdudka@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On 07/03/2022 07:54, Rohan Sable wrote:
> Running ls -l on a path that has autofs mounts,
> triggers a mount or in case of unmountable shares,
> triggers errors :
> ~~~
> [root@rsablerhel85 mnt2]# ll
> ls: cannot access 'testshare2': No such file or directory     <<<<< Error
> total 0
> drwxrwxrwx. 3 1000 1000 15 Jan 17 12:08 testshare             <<<<< mount is triggerd for testshare
> d?????????? ? ?    ?     ?            ? testshare2            <<<<< Path we know that is inaccessible throws an error
> 
> [root@rsablerhel85 mnt2]# mount | grep -i test
> rsable76server:/testshare on /mnt2/testshare type nfs (rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=6,sec=sys,mountaddr=192.168.122.58,mountvers=3,mountport=20048,mountproto=tcp,local_lock=none,addr=192.168.122.58)
> ~~~
> 
> Added AT_NO_AUTOMOUNT flag to do_lstat to fix this behavior.

Yes we should handle this, but a bit differently I think.

In this and the stat(1) patch you're only doing the adjustment for lstat().
I'd be more inclined to do this for all statx() uses because:
  - stat() and lstat() behave as if AT_NO_AUTOMOUNT is set
    - stat can be significant here for ondemand dirs, bind mounted entries, or network contexts etc.
  - ls(1) and stat(1) are operating on meta-data so should avoid mounts by default

Also we have to provide some ifdef protection around AT_NO_AUTOMOUNT use.
That's best done in gnulib in fcntl.in.h

Also we have related control in the --cached=never option in stat(1),
which is meant to ensure we go the whole way to the source file system,
which maps well with _not_ setting AT_NO_AUTOMOUNT for that case only.

I'll follow up with some patches along those lines.

thanks,
Pádraig




Information forwarded to bug-coreutils@HIDDEN:
bug#54286; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Mar 2022 07:56:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 07 02:56:22 2022
Received: from localhost ([127.0.0.1]:52396 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nR8E9-0002CO-K3
	for submit <at> debbugs.gnu.org; Mon, 07 Mar 2022 02:56:22 -0500
Received: from lists.gnu.org ([209.51.188.17]:45678)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rsable@HIDDEN>) id 1nR8DJ-0002AT-Bj
 for submit <at> debbugs.gnu.org; Mon, 07 Mar 2022 02:55:29 -0500
Received: from eggs.gnu.org ([209.51.188.92]:40164)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rsable@HIDDEN>) id 1nR8DH-0000lR-Uq
 for bug-coreutils@HIDDEN; Mon, 07 Mar 2022 02:55:29 -0500
Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:45342)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rsable@HIDDEN>) id 1nR8DG-0008WG-Dd
 for bug-coreutils@HIDDEN; Mon, 07 Mar 2022 02:55:27 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
 s=mimecast20190719; t=1646639725;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type;
 bh=JiDrBt5G9QjKUlpKwE4i2Bbg5A8krQbwCehGe2YuyDY=;
 b=OBFix4c9AwjKDGtbKbop4dRpJlL8pL2VR+NWXwE+LG/c0a8WjkuBnVtmbU53+I2kIAUYSa
 ukYDma8XqtAsy4KFJIYEYtmSZ1kEMTmnRbbnfXarzFmsmdFFn4ji27yG0gC35kcxLzlLgV
 heGrEslinTXccs2JGl8STBIzyloHVhQ=
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
 [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS
 (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 us-mta-434-n7P3CvRjMFOEQcpOygv6DA-1; Mon, 07 Mar 2022 02:54:11 -0500
X-MC-Unique: n7P3CvRjMFOEQcpOygv6DA-1
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
 [10.5.11.12])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5708480D6A5;
 Mon,  7 Mar 2022 07:54:10 +0000 (UTC)
Received: from fedora.rsable.com (unknown [10.74.16.24])
 by smtp.corp.redhat.com (Postfix) with ESMTPS id 2D57F827A3;
 Mon,  7 Mar 2022 07:54:07 +0000 (UTC)
Date: Mon, 7 Mar 2022 13:24:02 +0530
From: Rohan Sable <rsable@HIDDEN>
To: bug-coreutils@HIDDEN
Subject: [PATCH] Fix ls -l triggering automounts.
Message-ID: <YiW6GsaQT0ZuhuZC@HIDDEN>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
Authentication-Results: relay.mimecast.com;
 auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=rsable@HIDDEN
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Received-SPF: pass client-ip=170.10.129.124; envelope-from=rsable@HIDDEN;
 helo=us-smtp-delivery-124.mimecast.com
X-Spam_score_int: -21
X-Spam_score: -2.2
X-Spam_bar: --
X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082,
 DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 07 Mar 2022 02:56:18 -0500
Cc: ikent@HIDDEN, rohanjsable@HIDDEN, kdudka@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

Running ls -l on a path that has autofs mounts,
triggers a mount or in case of unmountable shares,
triggers errors :
~~~
[root@rsablerhel85 mnt2]# ll
ls: cannot access 'testshare2': No such file or directory     <<<<< Error
total 0
drwxrwxrwx. 3 1000 1000 15 Jan 17 12:08 testshare             <<<<< mount is triggerd for testshare
d?????????? ? ?    ?     ?            ? testshare2            <<<<< Path we know that is inaccessible throws an error

[root@rsablerhel85 mnt2]# mount | grep -i test
rsable76server:/testshare on /mnt2/testshare type nfs (rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=6,sec=sys,mountaddr=192.168.122.58,mountvers=3,mountport=20048,mountproto=tcp,local_lock=none,addr=192.168.122.58)
~~~

Added AT_NO_AUTOMOUNT flag to do_lstat to fix this behavior.

Signed-off-by: Rohan Sable <rsable@HIDDEN>
---
 src/ls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ls.c b/src/ls.c
index 1930e4abb..bf79ef8b9 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -1204,7 +1204,7 @@ do_stat (char const *name, struct stat *st)
 static int
 do_lstat (char const *name, struct stat *st)
 {
-  return do_statx (AT_FDCWD, name, st, AT_SYMLINK_NOFOLLOW, calc_req_mask ());
+  return do_statx (AT_FDCWD, name, st, AT_SYMLINK_NOFOLLOW | AT_NO_AUTOMOUNT, calc_req_mask ());
 }
 
 static int
-- 
2.34.1





Acknowledgement sent to Rohan Sable <rsable@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#54286; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 7 Mar 2022 17:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.