DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 55IGMWtT1133892 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 55IGMWtT1133892 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=jq4fH070 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D58FC3836C25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1750263750; bh=0MHglc1ykZ+e143LEQQ61LFbrgYE0XgxyXKQ36E3JRw=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=jq4fH070Lv5D9yN8UgSQLPC14H+N9TEZSmXxKTYc9LNh6Qvr372B7R/VeiINc2GEV JvUe8RNvMN9a7wFT9ZqQV5tCIQw+QG0QMIlhQa1Ima0M8kj1KQvqNDaIS8dQDbZMAC ho1TdbehqGEh0XdZJ/2+uXD8HWmToWyWU5MoSPL0= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 15737385702B ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 15737385702B ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1750263663; cv=none; b=lAbH4Zh2abLm9ovBkVF2q1sOoXkdztf97j6lU9QvLDA3wNezptpfNfZmYBfghWJZzP1di487DeKR6Z+QIUlBK/diIU0Wy25oNd/e3fwI4TBtH5chA1zfaMyRDNJLEuJLDxiAG69D7AOs/eUZvXTkMLvVDnKHsL+DhelqrzV3OL0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1750263663; c=relaxed/simple; bh=5o+idBiOZ+WO3aG9bg2vUn2pqWri/gp9bXYKUet1sNo=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=wQ/cffhKmrwheFyBo9WYlyjwXFTGE/drifFYvXNfAb5EsqxfNpqBeOybJjXkIvLWSRgwcm700OthCs3GmDC9ooTx425ktHfv++eW9wFLAzfKzH56MJ/+VjgfiZ/f6E9c6nPxdgeak8Tr5BYooSdr2pqektp3+Qa68E5aJc5CrVE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15737385702B X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750263662; x=1750868462; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5o+idBiOZ+WO3aG9bg2vUn2pqWri/gp9bXYKUet1sNo=; b=th+qLoasbpWiIF1Vagl+anBtpQBCoXML2FLeRTXyB89+EgHtu9S6FP8x6erP7iOuL3 lpJxMib1kOjHq+7ErcFO8zXTkKBx2s8+N/UJZM7yE9iUCqpYXneGyHu+9rrABLKjGs1M m+YaIE0ypjAVuJC4DjAL7mKjqr3Eze6fRdDeGWUOKLM2SFs1Wt0h9YVJj983ghC4qpW3 jszTkY9E5Dm3douebJW5XvOoahx+TL72vqrzjf3GYrBlq9pC7oWzjD0VMFP+Xvfdars5 rDTD1ZQtEDsF+3SVr4cIplSCbw0qkcxx3t4A+w0LVE02XMTTrg0/87buz++rGP74kr94 8eSw== X-Gm-Message-State: AOJu0Yy+FDOsmMLqcr84yDI7FYXsEb6UQ9w1fG4rQWP99iVdqJX3lhKA j3pY2ClgCBmS9a3Czs7qtB2+2GrKImnw4+av74sR0l/sUvoTOITnvewYlcgfSFZK5yEjli+2VNM h6g98DZp7V//oHigTl/jTY1EAPq7sS96J+shElYk= X-Gm-Gg: ASbGnculAlc6isvX1p444/O4DcLLU6Gd+MNecimK9/ugEbgXUShF2+tia6o1VjX/61+ 6/YcZFIemaBVwNDAfNK0Ci73j9sPTTKdRlfT0/1LJv4TkaOh16a4sqK/qT0kOcVHk09aUuEUgmY 85ds9eerVo515c/UlYbYGAtOSTjMVu9gDHQDqfhHOJQt4= X-Google-Smtp-Source: AGHT+IEdX2YPbr8W8JJ57/RbemB5Sa+jf0zCGe1uHDevaI/PCnVkaARPIcKtbFXvzK1hIdmXKaJ4Ti4DOlR30Us3vZ8= X-Received: by 2002:a05:6830:7313:b0:72b:b8d8:3995 with SMTP id 46e09a7af769-73a363384ddmr12091139a34.19.1750263662181; Wed, 18 Jun 2025 09:21:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 18 Jun 2025 18:20:26 +0200 X-Gm-Features: Ac12FXx3AMYBM7e2Ir7TPb-MdBOGPoLgaxBIPRKDBNMy7537oj0Fb4plxfWZPV4 Message-ID: Subject: Re: cmd.exe and powershell.exe cannot follow on NTFS for *.exe To: cygwin AT cygwin DOT com X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: =?utf-8?q?Aur=C3=A9lien_Couderc_via_Cygwin?= Reply-To: =?UTF-8?Q?Aur=C3=A9lien_Couderc?= Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 55IGMWtT1133892 On Tue, Jun 17, 2025 at 5:25 PM Aurélien Couderc wrote: > > Cygwin creates instead of on NTFS, but cmd.exe > cannot find the *.exe if they are linked as . > > Two test cases: > $ bash -c $'rm -f id_vers15.exe ; cp /usr/bin/id.exe id_vers15.exe ; > ln -sf id_vers15.exe myid.exe ; cmd /C \'.\\\\\myid.exe\'' > $ bash -c $'rm -f id_vers15.exe ; cp /usr/bin/id.exe id_vers15.exe ; > ln -sf id_vers15.exe myid.exe ; powershell -Command > \'.\\\\\myid.exe\'' > > In both test cases the copied and linked myid.exe cannot be executed. > > Is there a way to fix this? Why does Cygwin not use SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE? Aurélien -- Aurélien Couderc Big Data/Data mining expert, chess enthusiast -- 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