delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/12/24/19:30:19

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BP0UI513840864
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4BP0UI513840864
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=ogwr52l5
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F6373858D28
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1735086617;
bh=Tc62w1qtqODgvkhDJlGIU2+t0zbq8j7tnxUbPu9lFng=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=ogwr52l5fwj4PGhcKXPES+4bgeBlFB93u7YCWvEIqSgJgfC8PY8hMJeUpeF1UwS/t
2esPY+t6rRoQj/AkhZFqwR3Bh3az8WE/VH+f8F+DJMTmOc/A5dcwsAwwg2MfreVx0e
EKGt1oXdC/hS2Eu5sc44f3aHEQ3AxFsbhtJTzAic=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0FD5B3858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0FD5B3858D20
ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1735086590; cv=pass;
b=dq4azsc1YMAA7a8+VBuLt5H2hnrOjwAIN8Lf0R1mO0ad8AjDbiOfeAakhkOw3RLnZUkEoPlyPPdZ80Ac3GazNBZRLyKuTSdLKdu1K9QEiwc9+PSwaoKWzkDdEXy2Cd5Qi98s5KjqZfBrq3qFfwRCQcLapc2Xii/j6XfBGAmTQzY=
ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key;
t=1735086590; c=relaxed/simple;
bh=ZLWWObCGWUW2nm0Ns1YZNiLLTSnVjNcOe+XeQ2Ys0Mw=;
h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID:
MIME-Version;
b=KB4vsQHkruq6GYQExwskvUVIuW9wVj/fL/MceaDAcukEmiJwa5Swt1YfTByA8r25avJWZBGrT1osS/XOGdZmPDsfdg2OqQKzNsWvNRSz0DS0kFr80CWN12WtIxlkXHtwFVKBOcYoiILhYjKNyHXtJ6ZS1EmgqCuJnw3cqREOYLI=
ARC-Authentication-Results: i=2; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0FD5B3858D20
ARC-Seal: i=1; a=rsa-sha256; t=1735086588; cv=none;
d=strato.com; s=strato-dkim-0002;
b=h4VNU73witp2taKW95sHtFT7Y8cU24F09TkM53l3gre1CboYGx6+4qLeTXhdjIGIyr
4I751Dmc7vAOCiArTPoASLheRM5lb5DcTkJE3CGSqYNDJZBacebYjASKqOVegi7BH6Yr
CpNqilXuKKUbRsInQx/6yxLGqG+te1KRz38GHvVZUZzK7SRA5sXlvbkzcU2z2Tgjo4pl
/QP70dI+3rHNbBZw5y1kXehaRDCkQjLqEPib+SMUS4bie08LPngdLOcI0wZ/wEZGyI6U
bnhGABc4ghu2Ln5yg4NaAv9BBtJbpr9hKnB8pcD/OBNDTJ8e8PaJ1HMa+W1twZ1v7KGy
jUJg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1735086588;
s=strato-dkim-0002; d=strato.com;
h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender;
bh=KXa+DL0VyJ0/mhu/DGgvLZlK6KLFH6jFHSN+mzzLrYU=;
b=tNaBQ8s7MbveHrZcS0eSQzvPO2i9tXbBXHktA23/XCdEX6Mb3ns5Fr+PMVs79am3KM
oV63EUu8widbcKU+xcP2vSvn4VfqBjiB2Ewho5ERypFQiRa+HzT1BAQ1SlRI+apoEY8d
Py7DZ5VL8LqiYTDGMActtY9Lr3ibF4q0iMJzU30aP4LgMFlPynchFqaZ6PLSCNzbJQNx
bwkQc5iudnJOELqsvqU+FW4BiTiDBdEgawO+Vv6s372VmZ01Ng1NKVZT/qGS8lX4Qam3
sRcntj3+m0L58lhTxRDCrKBa1pYYgg02obmlml3Z2uRt1DyNSO+nj7N6+KrsgAxHvctv
ep4w==
ARC-Authentication-Results: i=1; strato.com;
arc=none;
dkim=none
X-RZG-CLASS-ID: mo00
X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlLnY4jECd2hdUURIbZgL8PX2QiTuZ3cdB8X/nqjicHGO/TuzbVOfh9mUBk4elim4="
To: cygwin AT cygwin DOT com
Subject: access X_OK for administrators has changed in cygwin 3.5.5
Date: Wed, 25 Dec 2024 01:29:47 +0100
Message-ID: <1947635.Bm8zEkEi59@nimes>
Organization: GNU
MIME-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Bruno Haible via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Bruno Haible <bruno AT clisp DOT org>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi,

The behaviour of the access(_, X_OK) call has changed for administrator
users in Cygwin 3.5.5. I don't know whether that's intended or not
(haven't seen it mentioned in
<https://sourceware.org/pipermail/cygwin-announce/2024-December/012023.html>).

How to reproduce:
========================== foo.c ===========================
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <grp.h>
#include <unistd.h>
int main ()
{
  close (creat ("file", 0600));
  chmod ("file", 0400);
  printf ("file X_OK ? %d\n", access ("file", X_OK));
}
============================================================
1. In a normal Cygwin console (mintty):
   $ rm -f file
   $ gcc -Wall foo.c
   $ ./a
   => file X_OK ? -1
2. In a Cygwin console that runs "as administrator":
   $ ./a
   => In Cygwin 3.4.6: file X_OK ? -1
      In Cygwin 3.5.5: file X_OK ? 0

Bruno




-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019