Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 232079
Collapse All | Expand All

(-)/var/tmp/portage/app-editors/nano-2.1.1-r2/work/nano-2.1.1/src/files.c (-2 / +2 lines)
Lines 1572-1578 Link Here
1572
	}
1572
	}
1573
1573
1574
	if (f_open == NULL) {
1574
	if (f_open == NULL) {
1575
	    fd_source = open(realname, O_RDONLY | O_CREAT);
1575
	    fd_source = open(realname, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR);
1576
1576
1577
	    if (fd_source != -1) {
1577
	    if (fd_source != -1) {
1578
		f_source = fdopen(fd_source, "rb");
1578
		f_source = fdopen(fd_source, "rb");
Lines 1691-1697 Link Here
1691
	int fd_source;
1691
	int fd_source;
1692
	FILE *f_source = NULL;
1692
	FILE *f_source = NULL;
1693
1693
1694
	fd_source = open(tempname, O_RDONLY | O_CREAT);
1694
	fd_source = open(tempname, O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR);
1695
1695
1696
	if (fd_source != -1) {
1696
	if (fd_source != -1) {
1697
	    f_source = fdopen(fd_source, "rb");
1697
	    f_source = fdopen(fd_source, "rb");

Return to bug 232079