Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2019 07:55:53 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r344618 - head/cddl/contrib/opensolaris/lib/libzfs/common
Message-ID:  <201902270755.x1R7trx6009002@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Feb 27 07:55:53 2019
New Revision: 344618
URL: https://svnweb.freebsd.org/changeset/base/344618

Log:
  Fix regression introduced in r344569
  
  Reported by:	cy
  Tested by:	cy
  Submitted by:	Fatih Acar <fatih@gandi.net>

Modified:
  head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_mount.c

Modified: head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_mount.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_mount.c	Wed Feb 27 06:50:24 2019	(r344617)
+++ head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_mount.c	Wed Feb 27 07:55:53 2019	(r344618)
@@ -1260,11 +1260,11 @@ mountpoint_cmp(const void *arga, const void *argb)
 		if (*a == '\0')
 			return (-1);
 		if (*b == '\0')
-			return (-1);
+			return (1);
 		if (*a == '/')
 			return (-1);
 		if (*b == '/')
-			return (-1);
+			return (1);
 		return (*a < *b ? -1 : *a > *b);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902270755.x1R7trx6009002>