From c6311f4e0a17472f4ea7e6c15ad8fc41c71270c0 Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Mon, 10 Feb 1997 19:27:27 +0000 Subject: Removed YOST code. Removal of leading ./ chars should be done in unix_clean_name in util.c jra@cygnus.com (This used to be commit f9f1085c7db673f602f9de07670a9bbf3205410f) --- source3/smbd/server.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'source3') diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 6f4da9b779..5ff60c6c6c 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -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); -- cgit