Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix some issues with pkg-ssh parsing.
Vsevolod Stakhov committed 11 years ago
commit ed37d1ea23012504178b8eb7f31b6e4db25f22ba
parent 855159c
1 file changed +4 -0
modified libpkg/ssh.c
@@ -85,6 +85,10 @@ pkg_sshserve(int fd)

		if (*file == '/')
			file++;
+
		else if (*file == '\0') {
+
			printf("ko: bad command get, expecting 'get file age'\n");
+
			continue;
+
		}

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