X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=uuUgU NKHmD0kyGfGYg23nUCVnmxHpD4dzHIPQez8gQeC/a0UBGqTZ7bk7RIX9qKLNuU5p jQbdU3/TR9GCQAHqeLnWUFe5ajT1Me3LB/5Ji8e0ag+hVegky4BV+NvS6VGbn2CA hUXi91ZJhVWwGi1g5zutIlLkoeGB4jtG1AanxE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=cWP5JVqfX0D yPDWTDnwC4gFboGs=; b=UBP7/WTDdC6r8QW1gtCVYhNqoQ6f1ngiddDGnEUIJLU N4hnTk9G8jabdU11Sd4OCjOj6UmSm/yxceAEFHPQnIOd64oLQbMT5AHsLPSomJOx v/CQyWoZmZRdWngeA/YMDIvu+NA8ahxDLm/76WktgmYplGroQiVqEYRqXd9sbTvQ = Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-in-08.arcor-online.net X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-14.arcor-online.net 3msbDS009Mz90H2 From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: Shares with strange ACL settings References: <20150812152601 DOT GL13029 AT calimero DOT vinschen DOT de> <20150812155817 DOT GN13029 AT calimero DOT vinschen DOT de> Date: Thu, 13 Aug 2015 19:56:07 +0200 In-Reply-To: <20150812155817.GN13029@calimero.vinschen.de> (Corinna Vinschen's message of "Wed, 12 Aug 2015 17:58:17 +0200") Message-ID: <87a8tvvzrc.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Corinna Vinschen writes: > Cygwin is aware of them and access(2) explicitely checks for them. That > obviously doesn't help for applications like perl, who "know better" > than the underlying OS how to evaluate perms. Just for clarification, Perl doesn't "know better". It's documented that the file test operators only look at the mode bits and naver at the ACL. There's a pragma (use filetest qw/access/; # perldoc filetest) that lets you use access for the tests instead, but it currently is an unloved stepchild that doesn't let you use the stat cache (_) in tests nor stacked file tests (-r -x), which use it. The final nail in the coffin is that with that pragma in effect you can only test filenames, but not file handles. So you really need to write your code from the outset with that pragma in mind since it limits the use of test operators so greatly. At least they left the door open to a future where the filetest pragma does something more sensible on systems that rely to a larger extent on ACL. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple