Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add debug information to the ssh server
Baptiste Daroussin committed 11 years ago
commit 2ee7d84ba49768686995406cba9be09dc64b3ffd
parent 97a4693
1 file changed +4 -0
modified libpkg/ssh.c
@@ -43,6 +43,7 @@
#include <fcntl.h>

#include "pkg.h"
+
#include "private/event.h"

int
pkg_sshserve(int fd)
@@ -86,6 +87,8 @@ pkg_sshserve(int fd)
		if (*file == '/')
			file++;

+
		pkg_debug(1, "SSH server> file requested: %s", file);
+

		age = file;
		while (!isspace(*age)) {
			if (*age == '\0') {
@@ -136,6 +139,7 @@ pkg_sshserve(int fd)
		}

		if (fstatat(fd, file, &st, 0) == -1) {
+
			pkg_debug(1, "SSH server> fstatat failed");
			printf("ko: file not found\n");
			continue;
		}