Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix capsicum-less version of pkg-ssh.
Vsevolod Stakhov committed 11 years ago
commit 24aa7a0decf02f4b5bcadca7541b99133068325f
parent 3b35075a2032b6f7eb21a7bb64fde67961c9c703
1 file changed +2 -1
modified libpkg/ssh.c
@@ -134,8 +134,9 @@ pkg_sshserve(int fd)
#else
		if (restricted != NULL) {
#endif
+
			chdir(restricted);
			if (realpath(file, fpath) == NULL ||
-
					strncmp(file, restricted, strlen(restricted)) != 0) {
+
					strncmp(fpath, restricted, strlen(restricted)) != 0) {
				printf("ko: file not found\n");
				continue;
			}