@@ -590,7 +590,6 @@ static size_t tsrm_realpath_r(char *path, size_t start, size_t len, int *ll, tim
590
590
}
591
591
592
592
#ifdef ZEND_WIN32
593
- retry_reparse_point :
594
593
if (save ) {
595
594
pathw = php_win32_ioutil_any_to_w (path );
596
595
if (!pathw ) {
@@ -613,7 +612,7 @@ static size_t tsrm_realpath_r(char *path, size_t start, size_t len, int *ll, tim
613
612
tmp = do_alloca (len + 1 , use_heap );
614
613
memcpy (tmp , path , len + 1 );
615
614
616
- retry_reparse_tag_cloud :
615
+ retry :
617
616
if (save &&
618
617
!(IS_UNC_PATH (path , len ) && len >= 3 && path [2 ] != '?' ) &&
619
618
(dataw .dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT )
@@ -674,7 +673,7 @@ static size_t tsrm_realpath_r(char *path, size_t start, size_t len, int *ll, tim
674
673
dataw .dwFileAttributes = fileInformation .dwFileAttributes ;
675
674
CloseHandle (hLink );
676
675
(* ll )-- ;
677
- goto retry_reparse_tag_cloud ;
676
+ goto retry ;
678
677
}
679
678
free_alloca (tmp , use_heap );
680
679
CloseHandle (hLink );
@@ -821,15 +820,6 @@ static size_t tsrm_realpath_r(char *path, size_t start, size_t len, int *ll, tim
821
820
free_alloca (pbuffer , use_heap_large );
822
821
free (substitutename );
823
822
824
- {
825
- DWORD attrs = GetFileAttributesA (path );
826
- if (!isVolume && (attrs & FILE_ATTRIBUTE_REPARSE_POINT )) {
827
- free_alloca (tmp , use_heap );
828
- FREE_PATHW ()
829
- goto retry_reparse_point ;
830
- }
831
- }
832
-
833
823
if (isabsolute == 1 ) {
834
824
if (!((j == 3 ) && (path [1 ] == ':' ) && (path [2 ] == '\\' ))) {
835
825
/* use_realpath is 0 in the call below coz path is absolute*/
0 commit comments