1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

Removed YOST code. Removal of leading ./ chars should

be done in unix_clean_name in util.c
jra@cygnus.com
This commit is contained in:
Samba Release Account -
parent 84fc674c89
commit f9f1085c7d

View File

@ -389,9 +389,6 @@ BOOL unix_convert(char *name,int cnum,pstring saved_last_component)
struct stat st;
char *start, *end;
pstring dirpath;
#ifdef YOSTW
char szName[132], *p;
#endif
*dirpath = 0;
if(saved_last_component)
@ -401,23 +398,6 @@ BOOL unix_convert(char *name,int cnum,pstring saved_last_component)
unix_format(name);
unix_clean_name(name);
#ifdef YOSTW
/* Remove leading path specifications to check for 8_3 name */
if ( strncmp( name, "./",2) == 0 ) {
strcpy( szName, name+2 );
}
else {
strcpy( szName, name );
}
p = strrchr( szName, '/' );
if ( p != NULL ) {
p++;
}
else {
p = szName;
}
#endif
if (!case_sensitive &&
(!case_preserve || (is_8_3(name) && !short_case_preserve)))
strnorm(name);