summaryrefslogtreecommitdiffstats
path: root/source/smbd
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2002-01-25 00:35:14 +0000
committerSimo Sorce <idra@samba.org>2002-01-25 00:35:14 +0000
commit04f492980b73800b60dde764fdeb43f2eab79624 (patch)
tree20592ce677acff7dd0c5428ba85f106268ec4f72 /source/smbd
parent2137c7163475691056fe1701b75128e238520b05 (diff)
downloadsamba-04f492980b73800b60dde764fdeb43f2eab79624.tar.gz
samba-04f492980b73800b60dde764fdeb43f2eab79624.tar.xz
samba-04f492980b73800b60dde764fdeb43f2eab79624.zip
minor fixes
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/mangle.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/smbd/mangle.c b/source/smbd/mangle.c
index b83168712f0..a6f63371c3a 100644
--- a/source/smbd/mangle.c
+++ b/source/smbd/mangle.c
@@ -538,16 +538,18 @@ done:
BOOL is_8_3(const char *fname, BOOL check_case)
{
+ char *f;
smb_ucs2_t *ucs2name;
NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
if (!fname || !*fname) return False;
+ if ((f = strrchr(fname, '/')) == NULL) f = fname;
- DEBUG(10,("is_8_3: testing [%s]\n", fname));
+ DEBUG(10,("is_8_3: testing [%s]\n", f));
- if (strlen(fname) > 12) return False;
+ if (strlen(f) > 12) return False;
- ucs2name = acnv_uxu2(fname);
+ ucs2name = acnv_uxu2(f);
if (!ucs2name)
{
DEBUG(0,("is_8_3: out of memory!\n"));