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

Collapse All | Expand All

(-)openssh-3.9p1_sftp/sftp-server.c (-4 / +4 lines)
Lines 1138-1149 Link Here
1138
	handle_init();
1138
	handle_init();
1139
1139
1140
	/* Transaction logging */
1140
	/* Transaction logging */
1141
1141
	if ((char *)getenv("LOG_SFTP") != NULL)
1142
	if (atoi(getenv("LOG_SFTP")) == 1)
1142
	if (atoi(getenv("LOG_SFTP")) == 1)
1143
	{
1143
	{
1144
		permit_logging = 1;
1144
		permit_logging = 1;
1145
		log_init("sftp-server", atoi(getenv("SFTP_LOG_LEVEL")),
1145
		log_init("sftp-server", ((char *)getenv("SFTP_LOG_LEVEL") == NULL) ? 0 : atoi(getenv("SFTP_LOG_LEVEL")),
1146
			atoi(getenv("SFTP_LOG_FACILITY")), 0);
1146
			((char *)getenv("SFTP_LOG_FACILITY") == NULL) ? 0 : atoi(getenv("SFTP_LOG_FACILITY")), 0);
1147
	};
1147
	};
1148
1148
1149
1149
Lines 1178-1184 Link Here
1178
		if ( permit_logging == 1 )
1178
		if ( permit_logging == 1 )
1179
                logit("client is not permitted to chmod.");
1179
                logit("client is not permitted to chmod.");
1180
	};
1180
	};
1181
        if (atoi(getenv("SFTP_PERMIT_CHOWN")) != 1) {
1181
       if ((char *)(getenv("SFTP_PERMIT_CHOWN")) != NULL) if (atoi(getenv("SFTP_PERMIT_CHOWN")) != 1) {
1182
		permit_chown = 0;
1182
		permit_chown = 0;
1183
		if ( permit_logging == 1 )
1183
		if ( permit_logging == 1 )
1184
                logit("client is not permitted to chown.");
1184
                logit("client is not permitted to chown.");

Return to bug 82372