blob: 633a8838b70e7e227a5cbc74eba5190110a6f01d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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++;
|