summaryrefslogtreecommitdiff
path: root/source3/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
commit114eaabdcbacf626ccb452a2d4f695b183dd738b (patch)
tree3084d9285342cce6ecfa3edf1062df3ea8bd0421 /source3/smbd
parentca12d82eaf4c6bd498208a246ca8a1ca9f47c58b (diff)
downloadsamba-114eaabdcbacf626ccb452a2d4f695b183dd738b.tar.gz
samba-114eaabdcbacf626ccb452a2d4f695b183dd738b.tar.bz2
samba-114eaabdcbacf626ccb452a2d4f695b183dd738b.zip
minor fixes
(This used to be commit 04f492980b73800b60dde764fdeb43f2eab79624)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/mangle.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c
index b83168712f..a6f63371c3 100644
--- a/source3/smbd/mangle.c
+++ b/source3/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"));