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

(-)putty-0.60.orig/unix/uxmisc.c (-1 / +1 lines)
Lines 141-147 Link Here
141
	return fopen(filename.path, mode);
141
	return fopen(filename.path, mode);
142
    } else {
142
    } else {
143
	int fd;
143
	int fd;
144
	assert(mode[0] == 'w');	       /* is_private is meaningless for read */
144
	assert(mode[0] == 'w' || mode[0] == 'a');	       /* is_private is meaningless for read */
145
	fd = open(filename.path, O_WRONLY | O_CREAT | O_TRUNC,
145
	fd = open(filename.path, O_WRONLY | O_CREAT | O_TRUNC,
146
		      0700);
146
		      0700);
147
	if (fd < 0)
147
	if (fd < 0)

Return to bug 23796