Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix capsicum-less version of pkg-ssh.
Vsevolod Stakhov committed 11 years ago
commit 24aa7a0decf02f4b5bcadca7541b99133068325f
parent 3b35075
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;
			}