components/sbsigntool/patches/02-sbkeysync.patch
author jiawliu <gerry.liu@oracle.com>
Thu, 28 Jul 2016 14:41:31 -0700
changeset 6510 d00d3d1fc778
permissions -rw-r--r--
PSARC/2016/276 sbsigntool integration 23185392 Add sbsigntool to Userland

# Source: Internal
# Info: Written internally so this component can be built on Solaris.
# Status: This patch is offered at https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1588548

--- ORIGINAL/src/sbkeysync.c	2016-06-13 19:05:34.431247789 -0700
+++ sbsigntool-0.6/src/sbkeysync.c	2016-06-14 15:31:58.604039546 -0700
@@ -529,11 +529,19 @@
 	struct statfs statbuf;
 	int rc;
 
+#ifndef __sun
 	rc = statfs(mountpoint, &statbuf);
+#else
+	rc = statfs(mountpoint, &statbuf, 0, 0);
+#endif
 	if (rc)
 		return -1;
 
+#ifndef __sun
 	if (statbuf.f_type != EFIVARS_FSTYPE)
+#else
+	if (statbuf.f_fstyp != EFIVARS_FSTYPE)
+#endif
 		return -1;
 
 	return 0;