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

Collapse All | Expand All

(-)src/build.c (-1 / +1 lines)
Lines 333-339 build(void) Link Here
333
		(void) fprintf(stderr, "cscope: cannot open file %s\n", reffile);
333
		(void) fprintf(stderr, "cscope: cannot open file %s\n", reffile);
334
		myexit(1);
334
		myexit(1);
335
	}
335
	}
336
	if (invertedindex == YES && (postings = myfopen(temp1, "wb")) == NULL) {
336
	if (invertedindex == YES && (postings = myfopen(temp1, "w+xb")) == NULL) {
337
		cannotwrite(temp1);
337
		cannotwrite(temp1);
338
		cannotindex();
338
		cannotindex();
339
	}
339
	}
(-)src/display.c (-2 / +2 lines)
Lines 754-766 BOOL Link Here
754
writerefsfound(void)
754
writerefsfound(void)
755
{
755
{
756
	if (refsfound == NULL) {
756
	if (refsfound == NULL) {
757
		if ((refsfound = myfopen(temp1, "wb")) == NULL) {
757
		if ((refsfound = myfopen(temp1, "w+xb")) == NULL) {
758
			cannotopen(temp1);
758
			cannotopen(temp1);
759
			return(NO);
759
			return(NO);
760
		}
760
		}
761
	} else {
761
	} else {
762
		(void) fclose(refsfound);
762
		(void) fclose(refsfound);
763
		if ( (refsfound = myfopen(temp1, "wb")) == NULL) {
763
		if ( (refsfound = myfopen(temp1, "w+xb")) == NULL) {
764
			postmsg("Cannot reopen temporary file");
764
			postmsg("Cannot reopen temporary file");
765
			return(NO);
765
			return(NO);
766
		}
766
		}

Return to bug 71595