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

Collapse All | Expand All

(-)sshd.c (-2 / +11 lines)
Lines 794-800 Link Here
794
	int remote_port;
794
	int remote_port;
795
	FILE *f;
795
	FILE *f;
796
	struct addrinfo *ai;
796
	struct addrinfo *ai;
797
	char ntop[NI_MAXHOST], strport[NI_MAXSERV];
797
	char ntop[NI_MAXHOST], strport[NI_MAXSERV], *path;
798
	int listen_sock, maxfd;
798
	int listen_sock, maxfd;
799
	int startup_p[2];
799
	int startup_p[2];
800
	int startups = 0;
800
	int startups = 0;
Lines 1020-1025 Link Here
1020
			    "world-writable.", _PATH_PRIVSEP_CHROOT_DIR);
1020
			    "world-writable.", _PATH_PRIVSEP_CHROOT_DIR);
1021
	}
1021
	}
1022
1022
1023
	/* Check if PidFile a valid path */
1024
	path = xmalloc(MAXPATHLEN);
1025
	if (realpath(options.pid_file, path) == NULL)
1026
		error("Invalid PidFile specification: %s (%s)",
1027
		   options.pid_file, strerror(errno));
1028
	xfree(path);
1029
1023
	/* Configuration looks good, so exit if in test mode. */
1030
	/* Configuration looks good, so exit if in test mode. */
1024
	if (test_flag)
1031
	if (test_flag)
1025
		exit(0);
1032
		exit(0);
Lines 1164-1170 Link Here
1164
			if (f) {
1171
			if (f) {
1165
				fprintf(f, "%ld\n", (long) getpid());
1172
				fprintf(f, "%ld\n", (long) getpid());
1166
				fclose(f);
1173
				fclose(f);
1167
			}
1174
			} else
1175
				error("Failed to write PidFile %.100s (%s)",
1176
				    options.pid_file, strerror(errno));
1168
		}
1177
		}
1169
1178
1170
		/* setup fd set for listen */
1179
		/* setup fd set for listen */

Return to bug 606