We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4833dda commit cf06f99Copy full SHA for cf06f99
contrib/win32/openssh/OpenSSH-build.ps1
@@ -46,5 +46,4 @@ try
46
finally
47
{
48
Pop-Location
49
-}
50
-
+}
contrib/win32/win32compat/fileio.c
@@ -427,6 +427,14 @@ file_in_chroot_jail(HANDLE handle) {
427
if (!final_path)
428
return 0;
429
430
+ const wchar_t* uncPrefix = L"UNC\\";
431
+ int isUNCPath = memcmp(final_path, uncPrefix, 2 * wcslen(uncPrefix));
432
+
433
+ if (0 == isUNCPath) {
434
+ debug3("symlink points to UNCPath");
435
+ return 1;
436
+ }
437
438
to_wlower_case(final_path);
439
if ((wcslen(final_path) < wcslen(chroot_pathw)) ||
440
memcmp(final_path, chroot_pathw, 2 * wcslen(chroot_pathw)) != 0 ||
0 commit comments