summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-14 12:31:18 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-14 12:31:18 +1000
commit9d62ee2a815570b24a099b3960ed23942eebb3e7 (patch)
tree7b1b0d49601f5749353da6f11572446ba03ae1bc /source3/smbd
parent35fca856604f32c1a30b018dcd05e7f43fafae5d (diff)
downloadsamba-9d62ee2a815570b24a099b3960ed23942eebb3e7.tar.gz
samba-9d62ee2a815570b24a099b3960ed23942eebb3e7.tar.bz2
samba-9d62ee2a815570b24a099b3960ed23942eebb3e7.zip
s3-lib Move strisnormal to it's only user in mangle_hash.c
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/mangle_hash.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/smbd/mangle_hash.c b/source3/smbd/mangle_hash.c
index ebfacd1c33..d98b350a37 100644
--- a/source3/smbd/mangle_hash.c
+++ b/source3/smbd/mangle_hash.c
@@ -587,6 +587,19 @@ static bool lookup_name_from_8_3(TALLOC_CTX *ctx,
return *out ? True : False;
}
+/**
+ Check if a string is in "normal" case.
+**/
+
+static bool strisnormal(const char *s, int case_default)
+{
+ if (case_default == CASE_UPPER)
+ return(!strhaslower(s));
+
+ return(!strhasupper(s));
+}
+
+
/*****************************************************************************
Do the actual mangling to 8.3 format.
*****************************************************************************/