]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mount.nfs: Preserve explicit port=2049 option (Closes: #582003)
authorBen Hutchings <ben@decadent.org.uk>
Wed, 14 Jul 2010 02:40:48 +0000 (03:40 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 15 Jul 2010 00:46:52 +0000 (01:46 +0100)
debian/changelog
debian/patches/13-preserve-explicit-port-2049.patch [new file with mode: 0644]
debian/patches/series

index c2eab80be50a74209235bc8c1a5b8825a9fa5a8d..0d5b1991a0b96d6ac262485693dda1da5b27af57 100644 (file)
@@ -1,6 +1,6 @@
 nfs-utils (1:1.2.2-3) UNRELEASED; urgency=low
 
-  *
+  * mount.nfs: Preserve explicit port=2049 option (Closes: #582003)
 
  -- Ben Hutchings <ben@decadent.org.uk>  Wed, 14 Jul 2010 03:37:03 +0100
 
diff --git a/debian/patches/13-preserve-explicit-port-2049.patch b/debian/patches/13-preserve-explicit-port-2049.patch
new file mode 100644 (file)
index 0000000..5d270c9
--- /dev/null
@@ -0,0 +1,17 @@
+From: Ben Hutchings <ben@decadent.org.uk>
+Subject: [PATCH] mount.nfs: Preserve any explicit port=2049 option
+
+This addresses Debian bug #582003.
+--- nfs-utils-1.2.2.orig/utils/mount/stropts.c
++++ nfs-utils-1.2.2/utils/mount/stropts.c
+@@ -434,8 +434,8 @@
+       if (po_append(options, new_option) == PO_FAILED)
+               return 0;
+-      po_remove_all(options, "port");
+-      if (nfs_pmap->pm_port != NFS_PORT) {
++      if (po_remove_all(options, "port") == PO_FOUND ||
++              nfs_pmap->pm_port != NFS_PORT) {
+               snprintf(new_option, sizeof(new_option) - 1,
+                        "port=%lu", nfs_pmap->pm_port);
+               if (po_append(options, new_option) == PO_FAILED)
index abd79b350e2d7109b4ef422a50b1e9afe9e5adae..bbc16aa4bb6926d1cb794f4e9aa58edaa6b6d1c4 100644 (file)
@@ -4,3 +4,4 @@
 07-remove-duplicate-exports-paragraphs.patch
 11-532048-reduce-verbosity.patch
 12-svcgssd-document-n-option.patch
+13-preserve-explicit-port-2049.patch