summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-19 02:35:43 +0000
committerJeremy Allison <jra@samba.org>1998-09-19 02:35:43 +0000
commitac875597290a4519d6bbb2c476c4ba7ad3cf51c3 (patch)
tree83768b5bd73b68dd7fb0085625a02e971e1135d9 /source3/lib
parent11fe457e336168ab7491cfe123899240441316b8 (diff)
downloadsamba-ac875597290a4519d6bbb2c476c4ba7ad3cf51c3.tar.gz
samba-ac875597290a4519d6bbb2c476c4ba7ad3cf51c3.tar.bz2
samba-ac875597290a4519d6bbb2c476c4ba7ad3cf51c3.zip
Remove some byte-copying code in unix_format() that did nothing except
slow down my benchmark :-). Jeremy. (This used to be commit b55f93b213ee61c35e7a87a2be63191d55186bd6)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 7c37d15bb9..2df7689b94 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -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);
- }
}
/****************************************************************************