From 9d62ee2a815570b24a099b3960ed23942eebb3e7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 14 Apr 2011 12:31:18 +1000 Subject: s3-lib Move strisnormal to it's only user in mangle_hash.c --- source3/smbd/mangle_hash.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source3/smbd/mangle_hash.c') 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. *****************************************************************************/ -- cgit