From 0070d8ff9ee0ccb5a22d0816229a0f2b2ce9b7b5 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Wed, 18 Jul 2007 20:42:29 -0600 Subject: [PATCH] 2.12r-4ubuntu6 --- debian/changelog | 6 ++++++ debian/patches/30nfs4-fix.dpatch | 34 +++++++++++++++++++++++++++++--- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 1e43ed7f..a671229c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +util-linux (2.12r-4ubuntu6) dapper; urgency=low + + * NFSv4 patch broke cfs. Import fix from debian 2.12r-10 + + -- LaMont Jones Mon, 15 May 2006 18:22:15 -0600 + util-linux (2.12r-4ubuntu5) dapper; urgency=low * Merge NFSv4 from debian (2.12r-9 versions 27-32) diff --git a/debian/patches/30nfs4-fix.dpatch b/debian/patches/30nfs4-fix.dpatch index 8a7d1190..e31a16c5 100755 --- a/debian/patches/30nfs4-fix.dpatch +++ b/debian/patches/30nfs4-fix.dpatch @@ -5,9 +5,9 @@ ## DP: No description. @DPATCH@ -diff -urNad util-linux-2.12r~/mount/nfsmount.c util-linux-2.12r/mount/nfsmount.c ---- util-linux-2.12r~/mount/nfsmount.c 2006-04-28 18:59:19.000000000 +0200 -+++ util-linux-2.12r/mount/nfsmount.c 2006-04-28 19:00:18.000000000 +0200 +diff -urNad --exclude=CVS --exclude=.svn ./mount/nfsmount.c /tmp/dpep-work.DQTPki/util-linux-2.12r/mount/nfsmount.c +--- ./mount/nfsmount.c 2006-05-15 17:56:55.000000000 -0500 ++++ /tmp/dpep-work.DQTPki/util-linux-2.12r/mount/nfsmount.c 2006-05-15 17:59:35.000000000 -0500 @@ -301,6 +301,7 @@ (xdrproc_t)xdr_void, (caddr_t)NULL, (xdrproc_t)xdr_void, (caddr_t)&clnt_res, @@ -16,6 +16,34 @@ diff -urNad util-linux-2.12r~/mount/nfsmount.c util-linux-2.12r/mount/nfsmount.c clnt_destroy(clnt); close(sock); if (stat != RPC_PROGVERSMISMATCH) +@@ -332,17 +333,17 @@ + p_prot = prot ? &prot : protos; + p_vers = vers ? &vers : versions; + rpc_createerr.cf_stat = 0; ++ p_port = port; + for (;;) { +- saddr->sin_port = htons(PMAPPORT); +- p_port = pmap_getport(saddr, prog, *p_vers, *p_prot); +- if (p_port) { +- if (!port || port == p_port) { +- saddr->sin_port = htons(port); +- if (clnt_ping(saddr, prog, *p_vers, *p_prot)) +- goto out_ok; +- } +- } else if (rpc_createerr.cf_stat != RPC_PROGNOTREGISTERED) +- break; ++ if (!port) { ++ saddr->sin_port = htons(PMAPPORT); ++ p_port = pmap_getport(saddr, prog, *p_vers, *p_prot); ++ if (p_port == 0 && rpc_createerr.cf_stat != RPC_PROGNOTREGISTERED) ++ break; ++ } ++ saddr->sin_port = htons(p_port); ++ if (clnt_ping(saddr, prog, *p_vers, *p_prot)) ++ goto out_ok; + if (!prot) { + if (*++p_prot) + continue; @@ -416,7 +417,8 @@ return 1; memcpy(mnt_pmap, &save_mnt, sizeof(*mnt_pmap)); -- 2.39.5