summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-10-29 13:19:22 +0000
committerSimo Sorce <idra@samba.org>2001-10-29 13:19:22 +0000
commit95aa4c6bbe99f7883bbe3a08e0072685dc04c091 (patch)
treebb306042394772af5e00b616bc6224405d62035c /source3/smbd
parentf93a8a3f9069b8cfbb9f3e751017961f06436c63 (diff)
downloadsamba-95aa4c6bbe99f7883bbe3a08e0072685dc04c091.tar.gz
samba-95aa4c6bbe99f7883bbe3a08e0072685dc04c091.tar.bz2
samba-95aa4c6bbe99f7883bbe3a08e0072685dc04c091.zip
change some more functions to the new mangle interface.
(This used to be commit 06a7c28ea1be81c4a53f9a5b885c37fdde31f75c)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/filename.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 5fdbef44fe..d1c512c251 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -76,15 +76,17 @@ static BOOL fname_equal(char *name1, char *name2)
****************************************************************************/
static BOOL mangled_equal(char *name1, char *name2)
{
- pstring tmpname;
-
- if (is_8_3(name2, True))
- return(False);
-
- pstrcpy(tmpname,name2);
- mangle_name_83(tmpname);
-
- return(strequal(name1,tmpname));
+ char *tmpname;
+ BOOL ret = False;
+
+ if (is_8_3(name2, True))
+ {
+ tmpname = dos_mangle(name2);
+ if(tmpname)
+ ret = strequal(name1,tmpname);
+ SAFE_FREE(tmpname);
+ }
+ return ret;
}