@@ -360,12 +360,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
360360 fprintf (stderr ,"cwd = %s path = %s\n" , state -> cwd , path );
361361#endif
362362 if (IS_ABSOLUTE_PATH (path_copy , path_length )) {
363- /* COPY_WHEN_ABSOLUTE needs to account for volume name that is unique to NetWare absolute paths */
364- #ifndef NETWARE
365- copy_amount = COPY_WHEN_ABSOLUTE ;
366- #else
367363 copy_amount = COPY_WHEN_ABSOLUTE (path_copy );
368- #endif
369364 is_absolute = 1 ;
370365#ifdef TSRM_WIN32
371366 } else if (IS_UNC_PATH (path_copy , path_length )) {
@@ -438,12 +433,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
438433 ptr = tsrm_strtok_r (NULL , TOKENIZER_STRING , & tok );
439434 }
440435
441- /* COPY_WHEN_ABSOLUTE needs to account for volume name that is unique to NetWare absolute paths */
442- #ifndef NETWARE
443- if (state -> cwd_length == COPY_WHEN_ABSOLUTE ) {
444- #else
445436 if (state -> cwd_length == COPY_WHEN_ABSOLUTE (state -> cwd )) {
446- #endif
447437 state -> cwd = (char * ) realloc (state -> cwd , state -> cwd_length + 1 + 1 );
448438 state -> cwd [state -> cwd_length ] = DEFAULT_SLASH ;
449439 state -> cwd [state -> cwd_length + 1 ] = '\0' ;
@@ -493,12 +483,7 @@ CWD_API int virtual_chdir_file(const char *path, int (*p_chdir)(const char *path
493483 return -1 ;
494484 }
495485
496- /* COPY_WHEN_ABSOLUTE needs to account for volume name that is unique to NetWare absolute paths */
497- #ifndef NETWARE
498- if (length == COPY_WHEN_ABSOLUTE && IS_ABSOLUTE_PATH (path , length + 1 )) { /* Also use trailing slash if this is absolute */
499- #else
500486 if (length == COPY_WHEN_ABSOLUTE (path ) && IS_ABSOLUTE_PATH (path , length + 1 )) { /* Also use trailing slash if this is absolute */
501- #endif
502487 length ++ ;
503488 }
504489 temp = (char * ) tsrm_do_alloca (length + 1 );
0 commit comments