DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 50ANNpae1667290
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 50ANNpae1667290
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=LJMOe9Z3
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4A99385828B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1736551429;
	bh=7P6bS+XGPmv//xtPB9B2/NF2mJJdBLMiAUZWvRr3C58=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=LJMOe9Z3J5j4lrShVdj9/0edtTANXaJnuwP/1QYW2eB56zDqhuFpbRDVsddfUYamS
	 0f+wP1mH8Z9ejzmlsjIuLbo+YzWz06qg8y2tV9re7jMpIoGgjxy7YLmvbto3I0QhdE
	 hZ0C/XThNz/4jB9C9qGYwk15V6UCbQDBtpF7eNhk=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 65F88385843B
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 65F88385843B
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736551384; cv=none;
 b=dh13ErQ2Fko7InLaNpozq+K7NjTql3jV59UJ/aQ2gvH+5YQ692xNzD9PbUIaoKFWdnoII3e+IPbyLeExtsq/vW6PzSVUr7Ob89y8E3deDpy5hkF6grnrqO68Jlvv5U8494Rd5B+h+IKY6WlxFChQciDDdkDA0ivMEFFK2kIGOrk=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1736551384; c=relaxed/simple;
 bh=oBQUk9DJlZZlLV96q2+i/unco+24Qon3pUWPKXtrGvE=;
 h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
 b=Vd4r/lZ0iUN4p3dNcNTrtMi56TZw7vsUMROpdW0/PO2G91JH7y9oVGM8PVwNKvBt/ynIJYnLSeXaxjDu2oqVGiTyoTqfYHNdCiPuFkb464loXzz0FxgDfJE1OLuvGEZlAsCeSTL3/J3PwUYJiFRgvYmW7jcATirdAPjfeftlbqY=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 65F88385843B
Message-ID: <a9ef7160-038d-4271-bb54-bfa804579944@SystematicSW.ab.ca>
Date: Fri, 10 Jan 2025 16:23:01 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Using forwarded filesystems with Windows Remote Client (e.g.
 accessing //TSCLIENT/L via mstsc.exe) ?
Content-Language: en-CA
To: cygwin@cygwin.com
References: <CAKAoaQnkqcZZiOUMfVctAxT_yKbmKqOizZpXfwXd3BWDc6ga-A@mail.gmail.com>
 <CAKAoaQm0uCqPUw3HB-OxNNqSc1vS50buOTmQJBk9NdMap+g-qA@mail.gmail.com>
Organization: Systematic Software
In-Reply-To: <CAKAoaQm0uCqPUw3HB-OxNNqSc1vS50buOTmQJBk9NdMap+g-qA@mail.gmail.com>
X-Rspamd-Queue-Id: 7B8652000D
X-Rspamd-Server: rspamout05
X-Stat-Signature: 7yf3xo7zc3zqcpdcoy55o78oqpkyn3xe
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX19NWhYMLzmktQSsCee8Bajsr7d/oVQmaWM=
X-HE-Tag: 1736551382-803785
X-HE-Meta: U2FsdGVkX19seVJcL6WfWD5W7DbrGUJSQKtwT+37I2zFbRUtrEJHgWPp7bOMn3DtJPLQWNGlFhthZSCPsC5y+3dVPjgyciTdTQGIGNtImtgGlzoZVx/sa3I+7Zc+O7u5lmQhXgjpVv0ErBckFN6Kl3LWj1Yjn/652hrqPGfjiiRPLrkNjSP/WEo++uAnUTY6lLHE/wjIjIiRVS5Ias3aptt1qyt2IRNpIknR2ANBAjT5Q2Rwei70mpali1KXr/NMGpw43t6z5BuRhyUfqZwGaAwjkVJsgFBeXMQBYuxbMqithYCyGZSLOK5kg3RJaoCUMoF9NiPlG5G1F28Jdxkjsh3a4tHKAyJauMmDNmWL7HiSLRlLBt8F007IVkwGpSSCOYqN8WcXuvQ84JM5p33lUQ==
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 50ANNpae1667290

On 2025-01-09 08:18, Roland Mainz via Cygwin wrote:
> On Wed, Jan 8, 2025 at 5:33 PM Roland Mainz <roland.mainz@nrubsig.org> wrote:
>>
>> Hi!
>>
>> ----
>>
>> Does Cygwin 3.6 support filesystems which have been forwarded by the
>> Windows Remote Client (mstsc.exe) ?
>>
>> I tried to access such a forwarded dir, but $ ls -l # returned this:
>> ---- snip ----
>> $ bash -c 'cd //TSCLIENT/L && ls -l'
>> ls: cannot read symbolic link 'newtestmachine_dir2': Invalid argument
>> ls: cannot read symbolic link 'winserver2019_admindir2': Invalid argument
>> total 665207504417527
>> ?--xr--r-x     0 Unix_User+2       Unix_Group+1252
>> 8589934592 Jan  1  1970  builds
>> ?--xr--r-x 65535 Unix_User+0       Unix_Group+6539296
>> 8589934592 Jan  1  1970  download
>> ?--xr--r-x 65535 Unix_User+0       Unix_Group+6539296
>> 8589934592 Jan  1  1970  gitbundles
>> ?--xr--r-x 65535 Unix_User+0       Unix_Group+6539296
>> 8589934592 Jan  1  1970  newtestmachine1
>> l-----xr-x    13 Unix_User+6539088 Unix_Group+6539672
>> 4294967295 Jan  1  1970  newtestmachine_dir2
>> ?-ws-wS--t 65535 Unix_User+0       Unix_Group+6539296
>> 4294967296000 Jan  1  1970  newtestmachine_dir3
>> ?--xr--r-x 65535 Unix_User+0       Unix_Group+6539296
>> 8589934592 Jan  1  1970  rde
>> ?--xr--r-x 65535 Unix_User+0       Unix_Group+6539296
>> 8589934592 Jan  1  1970  rde.zip
>> ?-ws-wS--t 65535 Unix_User+0       Unix_Group+6539296
>> 4294967296000 Mar 17  1970  te_install
>> l-----x-wx    11 Unix_User+6539088 Unix_Group+6539672
>> 4294967295 Jan  1  1970  winserver2019_admindir2
>> ---- snip ----
>>
>> Any idea what is going wrong in this case ?
> 
> Short update:
> On the machine which got the forwarded filesystems I get this:
> ---- snip ----
> $ nfs_ea '\??\UNC\TSCLIENT\T\test1' getnfs3attr
> Querying extended attribute 'NfsV3Attributes' on file
> '\??\UNC\TSCLIENT\T\test1':
> ZwQueryEaFile('"') failed with 0xc0000002
> ---- snip ----
> 
> 0xC0000002 == STATUS_NOT_IMPLEMENTED
> 
> The Windows NFSv3 and NFSv4.1/NFSv.2 drivers implement support for
> "NfsV3Attributes", so it seems filesystem forwarding in RDP does not
> support EAs (=extended attributes).
> Powershell itself can handle files&&cd etc., it seems only
> applications which rely on "NfsV3Attributes" are affected...
> 
> ... maybe in Cygwin there are places where the return code for
> |nfs_fetch_fattr3()| isn't checked ?

Run a Cygwin program under Cygwin strace and redirect the output to prog.strace 
which is a time stamped text log of Cygwin internal and Windows "system calls".

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

-- 
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

