From dd067c0b0dff22560d1689a6a2d4440e1eb46239 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Fri, 9 Feb 2024 13:30:01 -0600 Subject: [PATCH] ntdll: Replace a MAX_PATH with PATH_MAX. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Related code uses PATH_MAX; this seems to have been an accident. Spotted by Aida JonikienÄ—. --- ...dll-Add-an-intermediary-prefix-symlink-in-reparse-.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/ntdll-Junction_Points/0014-ntdll-Add-an-intermediary-prefix-symlink-in-reparse-.patch b/patches/ntdll-Junction_Points/0014-ntdll-Add-an-intermediary-prefix-symlink-in-reparse-.patch index b370ad56..e0db8db0 100644 --- a/patches/ntdll-Junction_Points/0014-ntdll-Add-an-intermediary-prefix-symlink-in-reparse-.patch +++ b/patches/ntdll-Junction_Points/0014-ntdll-Add-an-intermediary-prefix-symlink-in-reparse-.patch @@ -1,4 +1,4 @@ -From 88bdec9c242b2b7eaafa7d47a09679c3681ae4af Mon Sep 17 00:00:00 2001 +From 236c1c30f4cf4550a6fc50d3a5be050ec79bac53 Mon Sep 17 00:00:00 2001 From: "Erich E. Hoover" Date: Sat, 6 Feb 2021 16:16:17 -0700 Subject: [PATCH] ntdll: Add an intermediary prefix symlink in reparse point @@ -10,7 +10,7 @@ Signed-off-by: Erich E. Hoover 1 file changed, 39 insertions(+) diff --git a/dlls/ntdll/unix/file.c b/dlls/ntdll/unix/file.c -index 5d7095086d9..870a727b48f 100644 +index 5d7095086d9..6422bdc5ec1 100644 --- a/dlls/ntdll/unix/file.c +++ b/dlls/ntdll/unix/file.c @@ -3577,6 +3577,18 @@ static NTSTATUS get_reparse_target( UNICODE_STRING *nt_target, REPARSE_DATA_BUFF @@ -47,7 +47,7 @@ index 5d7095086d9..870a727b48f 100644 } + else if (find_prefix_end( unix_target, &relative_offset )) + { -+ char prefix_link[MAX_PATH]; ++ char prefix_link[PATH_MAX]; + + append_prefix = TRUE; + is_relative = FALSE;