From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 56BC44C27DE5 for <9fans@9fans.net>; Sat, 6 Jun 2020 02:36:58 -0400 (EDT) (envelope-from eekee57@fastmail.fm) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id E26E61D9D17; Sat, 6 Jun 2020 02:36:58 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1591425418; b=LHjcI730+huPdiGIGFqCHhtNaAKUeYM7vS/A9UzLJG9Usvozld q+cxcei/VfYf1ObXOX9gxxNEGF1/eut+gGdzUWe3OZk1vhH80B767YyNy9aemqLV a/83xlfZHJhcf8b8JWvYlq+ldP2hIGTZfBIhsGNAwQoqLTfL78t7efCYynE/LW+p L6G5FLwDeTgIMa9Tc/3ihu6Id0E+JOzKKB5y4vnzSSiU88R6nkU2WNNpQlMkkkC9 WvB/jpzq4Fsu397tTYy07y7v6TH/wEx5WADu3NGwwY0aublWcXq/ECz+jidkAdrx gHJruobLSdwkXJttqDH3Z5tYQ/X6ueHYCT8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:message-id:in-reply-to:references :date:from:to:subject:content-type; s=arcseal; t=1591425418; bh= qPFcIIhf9XiaUAh+EeMUglReRjEpyhoESUkqq05XfyM=; b=Y+d44j8rk94iI2X4 R4nWpodq8MhpdHQNSmrPZ/0ufBrJeJScoi7m1BvuvlNjg8x4DLcJEYWFC2S92mIz CD26UwVrvaAKMoOiwABnCzTW724RT3BsWbvmf8z8xvsW/Mvjl5OJuB376SgUL23X 1gyW1Qi8gEyE4yq02grqP7PgttRyjm3adP4hOO2672e66Ka+SfW2k22wrkVYC1XZ oE9AQSC+4QlB/rpD1bWiVr+0XMIe6qsD926uhqPNRVkBOMU3gr0xKsjQWW/eMwkQ 5vnqVjRLMt4gjCPb1od9FVT2fL1aSBnbAK+KH/FJbXk9YPvIhxSZ1kZ5zf6ztbvc +0j/rg== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=none (Domain is not BIMI enabled); dkim=pass (2048-bit rsa key sha256) header.d=fastmail.fm header.i=@fastmail.fm header.b=oc/qZhEq header.a=rsa-sha256 header.s=fm3 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=fmeR0ZaX header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=fastmail.fm; iprev=pass smtp.remote-ip=66.111.4.28 (out4-smtp.messagingengine.com); spf=pass smtp.mailfrom=eekee57@fastmail.fm smtp.helo=out4-smtp.messagingengine.com; x-aligned-from=pass (Address match); x-ptr=pass smtp.helo=out4-smtp.messagingengine.com policy.ptr=out4-smtp.messagingengine.com; x-return-mx=pass header.domain=fastmail.fm policy.is_org=yes (MX Records found: in1-smtp.messagingengine.com,in2-smtp.messagingengine.com); x-return-mx=pass smtp.domain=fastmail.fm policy.is_org=yes (MX Records found: in1-smtp.messagingengine.com,in2-smtp.messagingengine.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=-100 state=0 Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=none (Domain is not BIMI enabled); dkim=pass (2048-bit rsa key sha256) header.d=fastmail.fm header.i=@fastmail.fm header.b=oc/qZhEq header.a=rsa-sha256 header.s=fm3 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=fmeR0ZaX header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=fastmail.fm; iprev=pass smtp.remote-ip=66.111.4.28 (out4-smtp.messagingengine.com); spf=pass smtp.mailfrom=eekee57@fastmail.fm smtp.helo=out4-smtp.messagingengine.com; x-aligned-from=pass (Address match); x-ptr=pass smtp.helo=out4-smtp.messagingengine.com policy.ptr=out4-smtp.messagingengine.com; x-return-mx=pass header.domain=fastmail.fm policy.is_org=yes (MX Records found: in1-smtp.messagingengine.com,in2-smtp.messagingengine.com); x-return-mx=pass smtp.domain=fastmail.fm policy.is_org=yes (MX Records found: in1-smtp.messagingengine.com,in2-smtp.messagingengine.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=-100 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvgecutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffrtefo kffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsuc dlqddutddtmdenucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhr ohhmpedfgfhthhgrnhcuifgrrhguvghnvghrfdcuoegvvghkvggvheejsehfrghsthhmrg hilhdrfhhmqeenucggtffrrghtthgvrhhnpeffvddtheegkeeffefgueefjedutedvgffg ffekgfejhfetkeegveejvdefueeuieenucfkphepieeirdduuddurdegrddvkeenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeiiedrudduuddrgedrvdek pdhhvghlohepohhuthegqdhsmhhtphdrmhgvshhsrghgihhnghgvnhhgihhnvgdrtghomh dpmhgrihhlfhhrohhmpeeovggvkhgvvgehjeesfhgrshhtmhgrihhlrdhfmhequcfukfgk gfepfeelkeefpdhmrghilhhfrhhomhepvggvkhgvvgehjeesfhgrshhtmhgrihhlrdhfmh X-ME-VSScore: -100 X-ME-VSCategory: clean Received-SPF: pass (fastmail.fm: Sender is authorized to use 'eekee57@fastmail.fm' in 'mfrom' identity (mechanism 'include:spf.messagingengine.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="eekee57@fastmail.fm"; helo=out4-smtp.messagingengine.com; client-ip=66.111.4.28 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Sat, 6 Jun 2020 02:36:57 -0400 (EDT) (envelope-from eekee57@fastmail.fm) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B5A375C00BC for <9fans@9fans.net>; Sat, 6 Jun 2020 02:36:57 -0400 (EDT) Received: from imap35 ([10.202.2.85]) by compute1.internal (MEProxy); Sat, 06 Jun 2020 02:36:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm3; bh=qPFcIIhf9XiaUAh+EeMUglReRjEpyho ESUkqq05XfyM=; b=oc/qZhEqftqfrfChH8FAdx8ybt11C0EFj9el6Nv0A4GSxpd 68xKBqw6MzWPCVcKm4PjwFGzmkTakmz4tdgrm8NQdj6A1aQfg1OJbEGIsnXYsBqY gn/tqefA4r7ooMYW4L907t3oJLOvLP3lMuwt6yh8ZSNPX/4b82uU5Nz0fUJJ7Tqw cuFibAyYxMpEVXjPllxSoo4gGCGhGy2KfQUCqhJTY3ncJD+FKblhWgFbc/kRHGV4 9jg7ymhWDiwDcTrYBGKj3AIWUT0KBYttaieoTV0UPFDzOk4QBomvQvVynlGwiiQ1 vzVu7Vbc18zfm1xrsqlQR82Bp4cMgCGBciQKyDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=qPFcII hf9XiaUAh+EeMUglReRjEpyhoESUkqq05XfyM=; b=fmeR0ZaXtoKcGAlbfCIEyL sGsrKj0nt5Xa3oDSx6MLRPHZWoBCkHEnx7CoX8gXd0VE/jd5ZJH+uSuzGQ8bKX4l JTYKECvJ5axdPs5nrC7DwzxjHaV798g0mAeDJzJxPvMUqth9jAFAX6cRcthvq/kJ M8Qxu4z4W4MyUK4XzyPXAeyat6MdIGCy/PAHpqzC/9YERrKcMpipcMmQHQ3/+vOx cDl8WPHBg82jJ12xiEWjsCRV03YGzTcyyv4xyyDt7K31FbJxd32L+hx3RzIBCDk9 uNGjHek0Jj+uZ9wif9v+pnT6vGHNc6VOoy4x4q7yD9VF2k3d0LdaX04b3wJIlKTA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeggedguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfgfht hhgrnhcuifgrrhguvghnvghrfdcuoegvvghkvggvheejsehfrghsthhmrghilhdrfhhmqe enucggtffrrghtthgvrhhnpeffvddtheegkeeffefgueefjedutedvgffgffekgfejhfet keegveejvdefueeuieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegvvghkvggvheejsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4A49F14C0103; Sat, 6 Jun 2020 02:36:56 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-dev0-519-g0f677ba-fm-20200601.001-g0f677ba6 Mime-Version: 1.0 Message-Id: <33fdd954-db9a-4273-a0ac-907f07b42499@www.fastmail.com> In-Reply-To: <235881e7dc602196b9845c4d10c211a8@hamnavoe.com> References: <235881e7dc602196b9845c4d10c211a8@hamnavoe.com> Date: Sat, 06 Jun 2020 07:36:36 +0100 From: "Ethan Gardener" To: "g_patrickb via 9fans" <9fans@9fans.net> Subject: Re: [9fans] `test -x` returns wrong results for directories Content-Type: text/plain Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 2224ed40-a7c0-11ea-997a-dda8c0277ff7 On Fri, Jun 5, 2020, at 8:22 PM, Richard Miller wrote: > Looks to me like access(2) is not doing the right thing for directory > execute (=search) permission. thanks for the tip. access is a very simple function. it doesn't do the right thing, but there's a reason: BUGS Since file permissions are checked by the server and group information is not known to the client, access must open the file to check permissions. (It calls stat(2) to check sim- ple existence.) it's open() which is failing. i suppose it should. if the open fails, maybe access should stat the file, and if it's a directory, try dirread(2). or maybe just opening it for reading will work. i don't know, i'm new to this bit of plan 9 & i haven't slept.