summaryrefslogtreecommitdiff
path: root/illumos-nfs/debian/patches/nfsd.c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'illumos-nfs/debian/patches/nfsd.c.patch')
-rw-r--r--illumos-nfs/debian/patches/nfsd.c.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/illumos-nfs/debian/patches/nfsd.c.patch b/illumos-nfs/debian/patches/nfsd.c.patch
new file mode 100644
index 0000000..633a883
--- /dev/null
+++ b/illumos-nfs/debian/patches/nfsd.c.patch
@@ -0,0 +1,13 @@
+Index: illumos-nfs/usr/src/cmd/fs.d/nfs/nfsd/nfsd.c
+===================================================================
+--- illumos-nfs.orig/usr/src/cmd/fs.d/nfs/nfsd/nfsd.c 2012-10-08 04:25:23.000000000 +0400
++++ illumos-nfs/usr/src/cmd/fs.d/nfs/nfsd/nfsd.c 2013-09-27 16:57:58.383948444 +0400
+@@ -848,7 +848,7 @@
+ /* now NULL out any duplicates */
+ i = 0; j = 1; nskipped = 0;
+ while (j < npaths) {
+- if (strcmp(pathnames[i], pathnames[j]) == NULL) {
++ if (strcmp(pathnames[i], pathnames[j]) == 0) {
+ pathnames[j] = NULL;
+ j++;
+ nskipped++;