View | Details | Raw Unified | Return to bug 1433 | Differences between
and this patch

Collapse All | Expand All

(-)sshd.c (+5 lines)
Lines 1205-1210 main(int ac, char **av) Link Here
1205
	int remote_port;
1205
	int remote_port;
1206
	char *line, *p, *cp;
1206
	char *line, *p, *cp;
1207
	int config_s[2] = { -1 , -1 };
1207
	int config_s[2] = { -1 , -1 };
1208
	mode_t new_umask;
1208
	Key *key;
1209
	Key *key;
1209
	Authctxt *authctxt;
1210
	Authctxt *authctxt;
1210
1211
Lines 1507-1512 main(int ac, char **av) Link Here
1507
		rexec_argv[rexec_argc] = "-R";
1508
		rexec_argv[rexec_argc] = "-R";
1508
		rexec_argv[rexec_argc + 1] = NULL;
1509
		rexec_argv[rexec_argc + 1] = NULL;
1509
	}
1510
	}
1511
1512
	/* Ensure that umask disallows at least group and world write */
1513
	new_umask = umask(0077) | 0022;
1514
	(void) umask(new_umask);
1510
1515
1511
	/* Initialize the log (it is reinitialized below in case we forked). */
1516
	/* Initialize the log (it is reinitialized below in case we forked). */
1512
	if (debug_flag && (!inetd_flag || rexeced_flag))
1517
	if (debug_flag && (!inetd_flag || rexeced_flag))

Return to bug 1433