Remove some byte-copying code in unix_format() that did nothing except
authorJeremy Allison <jra@samba.org>
Sat, 19 Sep 1998 02:35:43 +0000 (02:35 +0000)
committerJeremy Allison <jra@samba.org>
Sat, 19 Sep 1998 02:35:43 +0000 (02:35 +0000)
slow down my benchmark :-).

Jeremy.
(This used to be commit b55f93b213ee61c35e7a87a2be63191d55186bd6)

source3/lib/util.c

index 7c37d15bb99e8f2d898147c0ef2b8905f25cd2c8..2df7689b9441d609360660fb2ff87a18f53a4277 100644 (file)
@@ -924,15 +924,7 @@ void string_replace(char *s,char oldc,char newc)
 ****************************************************************************/
 void unix_format(char *fname)
 {
-  pstring namecopy;
   string_replace(fname,'\\','/');
-
-  if (*fname == '/')
-    {
-      pstrcpy(namecopy,fname);
-      pstrcpy(fname,".");
-      pstrcat(fname,namecopy);
-    }  
 }
 
 /****************************************************************************