www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/03/22/09:49:57

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5427B385840B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1711115395;
bh=Jfhi06WqlS2ECLj9OS+fJRed8IYM4bhfQjsFs6CBI+Q=;
h=Date:Subject:To:Cc:List-Id:List-Unsubscribe:List-Archive:
List-Post:List-Help:List-Subscribe:From:Reply-To:From;
b=nnXTYKW6IDOXaWTC2QZ4xh+dSwk3/H0zaR8hylHjLDHcStFVCqFA5OaQw1xicKhux
P7j/Fy1c7ZRVJqrRaZc2o1gqczNgf7zZ/5Gg+vA4g8bhfE4aVe4SlN6PkXsW1WOLY5
LZXcnY8BQht1V8qV1/pvWyMP5rIhnooCxD9Tc7Go=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E360C3858C32
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E360C3858C32
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711115376; cv=none;
b=umkdUxK3JvPXbb3EDBRAleoNDCPS4jX1q0aXzyIby1D2+uVNECn5jm07NkuPDNSWLC+IhzIb5jhC9ee1r+MmJRlVCoZxZ7fKuXZVU/KAYzOkMA//3k7VzkGzjQLpqXuihK/gx03M/9pLsL2i/xZk2nwDTFk6FQ/ry/JZbnl0miM=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1711115376; c=relaxed/simple;
bh=DfMe2IbRrVJuCFsbBD9Hep8kuDhjp7BYdR7UYwUX6Lo=;
h=MIME-Version:From:Date:Message-ID:Subject:To;
b=KuiguzQHgJ2ww/zTFh+FsOrsggUC+ybmpIWGTXpRp2pZdy8gi61dWIpuoINV0ClilxtdepnGCfX6fiXaWmnmg9Mbg2a6HpR4olxcYVikPci+hfYOAOnvBs93pnJBkCI2ChIL3vGmgoaS4ZV3rQmyd/KTuRcTV2jRChSHiIw8JKw=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1711115374; x=1711720174;
h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=TQLhXNgOHCFrWe0OcxjyyGdkrmVbgCfLfJwKwm3QOvo=;
b=e18jfkbt6FM4Rojfvr42A+J1/0eD+CoPZKrTssQC0HTPj1nCB9GpTA1TfCurISX6Tn
XJdzXZaufV3alplXVYr77vvkyQGXwqSTkKz3Pg1O0EThcfBunVlPFxa5Umv0TKe3f5Oa
4dlQE+QOFwcqkyMZa+QnExv+Y4q/mt6Nx2mbrK+VSgcEQ5egKzToac4STVG4ZeLF/bXa
130cPZwYriZEysghSSkCLcpX64Kbw2n7ig7xWT4Wgcfm7UMJOSwpsVW5qbZ92Ndw/w54
h/hABn5J/deiUF4agZ4sYZ1TZR1nw/3kn7YjzMSFBl0OZkKuSBIvWk6dm3IYqbo1Jpht
iXIw==
X-Gm-Message-State: AOJu0Yy2Ea922exmZAJr49JrQ31DuciZH5Lpk4He2xRsGt0ylYj4ZTwN
FZVp9790GABZcVLULadwPUWRxqIij7mqL5bqgwMthqY2gCDHYSV/atD3n2U8E3ONXZhQ+Sgxu3J
9o1lznWJijli5IZ0FUvLWo5yBU+qTWu1TCrw=
X-Google-Smtp-Source: AGHT+IEtc600pSaZN0b+YA5kDTPjL6t5JCcBaffUMoLC+fAae0A1Y+rFy6e+CKVZ8D+VuGwd/KtvM1rmfFXMuyBEUAc=
X-Received: by 2002:a6b:670c:0:b0:7d0:29ef:5149 with SMTP id
b12-20020a6b670c000000b007d029ef5149mr2703507ioc.8.1711115373822; Fri, 22 Mar
2024 06:49:33 -0700 (PDT)
MIME-Version: 1.0
Date: Fri, 22 Mar 2024 14:49:07 +0100
Message-ID: <CAKAoaQk1ofn+6e4LGsAbFLgPm_C9S6h_Pik8cTC=uVQ247d1xg@mail.gmail.com>
Subject: Updating cygwin "libnfs" package ?
To: cygwin AT cygwin DOT com
Cc: Yaakov Selkowitz <yselkowi AT redhat DOT com>
X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,
FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0,
HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
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: Roland Mainz via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Roland Mainz <roland DOT mainz AT nrubsig DOT org>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi!

----

Is it possible to update the Cygwin "libnfs" package, please ?

The current Cygwin "libnfs" version is rather old (per
https://cygwin.com/cgit/cygwin-packages/libnfs/log/ last updated in
2016-11-16) and has a couple of NFSv4-related bugs, for example:
-------- snip --------
$ nfs-ls.exe "nfs://derfwnb4966_ipv6linklocal/net_tmpfs2?version=4"
Failed to mount nfs share : mount/mnt call failed with "Server
responded: Program version mismatch"
-------- snip --------

Building the current version from https://github.com/sahlberg/libnfs
with Cygwin 3.6.0-0.99.g290843bbdab6.x86_64 is easy:
$ git clone https://github.com/sahlberg/libnfs.gi
# apply this patch:
---- snip ----
diff --git a/lib/nfs_v4.c b/lib/nfs_v4.c
index 178cb94..f811fcf 100644
--- a/lib/nfs_v4.c
+++ b/lib/nfs_v4.c
@@ -433,7 +433,7 @@ nfs_get_ugid(struct nfs_context *nfs, const char
*buf, int slen, int is_user)
        const char *name = buf;

        while (slen) {
-                if (isdigit(*buf)) {
+                if (isdigit((int)*buf)) {
                        ugid *= 10;
                        ugid += *buf - '0';
                } else {
---- snip ----
$  cd libnfs/
$  autoupdate
$  ln -s /usr/share/libtool/build-aux/ltmain.sh .
$  automake --add-missing
$  autoreconf
$  ./configure --without-libkrb5 --enable-utils
$  make all
-------- snip --------

After that "nfs-ls" works:
---- snip ----
$ ./utils/nfs-ls.exe
"nfs://derfwnb4966_ipv6linklocal/net_tmpfs2?version=4"
drwxrwxrwx  2 65534 65534           40 test2
drwxrwxrwx  2 65534 65534           40 test1
---- snip ----

----

Bye,
Roland
--
  __ .  . __
 (o.\ \/ /.o) roland DOT mainz AT nrubsig DOT org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

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