Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 147276 | Differences between
and this patch

Collapse All | Expand All

(-)plugins/ocfs2/ocfs2.c.orig (-2 / +4 lines)
Lines 636-641 static int fsim_test_version(void) Link Here
636
	int status;
636
	int status;
637
	int bytes_read;
637
	int bytes_read;
638
	int rc;
638
	int rc;
639
	float ver_num;
639
640
640
	LOG_ENTRY();
641
	LOG_ENTRY();
641
642
Lines 672-679 static int fsim_test_version(void) Link Here
672
	LOG_DEBUG("Reading output from process %d on fd %d.\n", pidm, fds2[0]);
673
	LOG_DEBUG("Reading output from process %d on fd %d.\n", pidm, fds2[0]);
673
	bytes_read = read(fds2[0], buffer, 1024);
674
	bytes_read = read(fds2[0], buffer, 1024);
674
	if (bytes_read > 0) {
675
	if (bytes_read > 0) {
675
		ver = strstr(buffer, "1.1");
676
		ver = strstr(buffer, "1.");
676
		if (!ver) {
677
		ver_num = atof(ver);
678
		if(ver_num < 1.1) {
677
			rc = EINVAL;
679
			rc = EINVAL;
678
		} else {
680
		} else {
679
			oc2_version = 2;
681
			oc2_version = 2;

Return to bug 147276