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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=pvqzJECqrL83Kq34+f+v9aVOv//XuueQ+xGPTU5BkHN323nLcp2zm 2e9K7o7GUD4/lFOazrmjuXE/w8jpsIdkJASc/ZPDMUXCub7fP7imzMc9SCApm80Q j68qrJX1s5l+bGJbsfp518+It6xWoUf1gc+yOwE+3v3klWPmMqC18Y= 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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=U0r+GD5ZtdkEsKh+f542Ry935D8=; b=uPpKwyoomhHkQ/LuTW0mNtm70OKc 40J6GvwKvzrLFPIoNOgz7fZKXCfvnLqTLEfEqSnkaHE9Oos4/qdInIRZ0h/DTRdg E6AxvdaOmTmOX3d60h4YIU4oN53Oco4BGWMLAiDet5mMj+giLUzeP9zup8ca+S1s cTKKxlM9kcwc+ag= 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=-5.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS,T_FSL_HELO_BARE_IP_2,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Achim Gratz Subject: Re: LDAP integration / ACL in Perl revisited Date: Wed, 25 Jun 2014 06:44:00 +0000 (UTC) Lines: 26 Message-ID: References: <20140624171306 DOT GK1803 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Corinna Vinschen cygwin.com> writes: > But when I run this via a perl script: > > $ cat > x.pl < use v5.10; This should be "use 5.14;" to do the same thing as "-E", I think. > Since test(1) is doing the right thing and returning the right results, > I'm blaming perl for now. I've tested this again on a different file and a different machine and using Cygwin32 via an admin CMD and a non-Admin one started from the same account. The straces this time are exactly identical save for the file handles, yet the outcome of the test is "no" for non-Admin and "yes" for Admin invocation. Neither access nor euidaccess are called either way, so there must be some heuristics in Cygwin Perl that try to infer access from the stat information alone. Why it doesn't pick up the fact that ACL are involved I can't say. The test executable on the other hand calls check_file_access, which then traces into euidaccess. Regards, Achim. -- 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