View | Details | Raw Unified | Return to bug 226096
Collapse All | Expand All

(-)cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c (+2 lines)
Lines 878-883 Link Here
878
878
879
	*config = NULL;
879
	*config = NULL;
880
880
881
	/* errno is tested upon return, initialize it here */
882
	errno = 0;
881
	if (fstat64(fd, &statbuf) == -1)
883
	if (fstat64(fd, &statbuf) == -1)
882
		return (-1);
884
		return (-1);
883
	size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t);
885
	size = P2ALIGN_TYPED(statbuf.st_size, sizeof (vdev_label_t), uint64_t);

Return to bug 226096