summaryrefslogtreecommitdiff
path: root/source3/smbd/mangle.c
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-02-11 22:53:29 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-02-11 22:53:29 +0000
commit8bd0dbb1af535466018b7ae3e4f7f042d493e145 (patch)
treee6aea313b53924182f95ec2511186fda325dfb6d /source3/smbd/mangle.c
parent25ca2fd3d36382107e5443d64a6bf35fe7c47cca (diff)
downloadsamba-8bd0dbb1af535466018b7ae3e4f7f042d493e145.tar.gz
samba-8bd0dbb1af535466018b7ae3e4f7f042d493e145.tar.bz2
samba-8bd0dbb1af535466018b7ae3e4f7f042d493e145.zip
Replaced YOST code with more functionally equivalent code that
changes a bit less. Also added fix to tricky reply_mv case. jra@cygnus.com (This used to be commit f22ac13b1423186d463c9fc5b3588a3dcbd7bc1c)
Diffstat (limited to 'source3/smbd/mangle.c')
-rw-r--r--source3/smbd/mangle.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c
index c0baa65982..5fdf31b7a4 100644
--- a/source3/smbd/mangle.c
+++ b/source3/smbd/mangle.c
@@ -79,7 +79,7 @@ static BOOL is_reserved_msdos(char *fname)
/****************************************************************************
return True if a name is in 8.3 dos format
****************************************************************************/
-BOOL is_8_3(char *fname)
+BOOL is_8_3(char *fname, BOOL check_case)
{
int len;
char *dot_pos;
@@ -91,8 +91,7 @@ BOOL is_8_3(char *fname)
DEBUG(5,("checking %s for 8.3\n",fname));
- if (case_mangle)
-#ifndef YOSTW
+ if (check_case && case_mangle)
switch (case_default)
{
case CASE_LOWER:
@@ -102,10 +101,6 @@ BOOL is_8_3(char *fname)
if (strhaslower(fname)) return(False);
break;
}
-#endif
-#ifdef YOSTW
- if (strhasupper(fname) && strhaslower(fname)) return(False);
-#endif
/* can't be longer than 12 chars */
if (len == 0 || len > 12)
@@ -652,7 +647,7 @@ BOOL name_map_mangle(char *OutName,BOOL need83,int snum)
}
/* check if it's already in 8.3 format */
- if (need83 && !is_8_3(OutName)) {
+ if (need83 && !is_8_3(OutName, True)) {
if (!lp_manglednames(snum)) return(False);
/* mangle it into 8.3 */