Removed YOST code. Removal of leading ./ chars should
authorSamba Release Account <samba-bugs@samba.org>
Mon, 10 Feb 1997 19:27:27 +0000 (19:27 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Mon, 10 Feb 1997 19:27:27 +0000 (19:27 +0000)
be done in unix_clean_name in util.c
jra@cygnus.com
(This used to be commit f9f1085c7db673f602f9de07670a9bbf3205410f)

source3/smbd/server.c

index 6f4da9b7794fcf8f87d87916108ec3b4138e456c..5ff60c6c6ce7e5f33dbe5c18a56e9bb92612304b 100644 (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);