summaryrefslogtreecommitdiff
path: root/source3/smbd/filename.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-18 17:40:25 -0700
committerJeremy Allison <jra@samba.org>2007-10-18 17:40:25 -0700
commit30191d1a5704ad2b158386b511558972d539ce47 (patch)
tree4f46e5c4f28f672ab661aa18f45745860970a88c /source3/smbd/filename.c
parent789856f63ff73fec66298e95c91c60db7bdaf14e (diff)
downloadsamba-30191d1a5704ad2b158386b511558972d539ce47.tar.gz
samba-30191d1a5704ad2b158386b511558972d539ce47.tar.bz2
samba-30191d1a5704ad2b158386b511558972d539ce47.zip
RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
Diffstat (limited to 'source3/smbd/filename.c')
-rw-r--r--source3/smbd/filename.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index fb8ed07ee8..dc733d4568 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -26,14 +26,14 @@
#include "includes.h"
-static BOOL scan_directory(connection_struct *conn, const char *path,
+static bool scan_directory(connection_struct *conn, const char *path,
char *name, char **found_name);
/****************************************************************************
Mangle the 2nd name and check if it is then equal to the first name.
****************************************************************************/
-static BOOL mangled_equal(const char *name1,
+static bool mangled_equal(const char *name1,
const char *name2,
const struct share_params *p)
{
@@ -50,7 +50,7 @@ static BOOL mangled_equal(const char *name1,
****************************************************************************/
static NTSTATUS determine_path_error(const char *name,
- BOOL allow_wcard_last_component)
+ bool allow_wcard_last_component)
{
const char *p;
@@ -110,7 +110,7 @@ for nlinks = 0, which can never be true for any file).
NTSTATUS unix_convert(TALLOC_CTX *ctx,
connection_struct *conn,
const char *orig_path,
- BOOL allow_wcard_last_component,
+ bool allow_wcard_last_component,
char **pp_conv_path,
char **pp_saved_last_component,
SMB_STRUCT_STAT *pst)
@@ -119,8 +119,8 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
char *start, *end;
char *dirpath = NULL;
char *name = NULL;
- BOOL component_was_mangled = False;
- BOOL name_has_wildcard = False;
+ bool component_was_mangled = False;
+ bool name_has_wildcard = False;
NTSTATUS result;
SET_STAT_INVALID(*pst);
@@ -702,8 +702,8 @@ NTSTATUS check_name(connection_struct *conn, const char *name)
This needs to be careful about whether we are case sensitive.
****************************************************************************/
-static BOOL fname_equal(const char *name1, const char *name2,
- BOOL case_sensitive)
+static bool fname_equal(const char *name1, const char *name2,
+ bool case_sensitive)
{
/* Normal filename handling */
if (case_sensitive) {
@@ -718,12 +718,12 @@ static BOOL fname_equal(const char *name1, const char *name2,
If the name looks like a mangled name then try via the mangling functions
****************************************************************************/
-static BOOL scan_directory(connection_struct *conn, const char *path,
+static bool scan_directory(connection_struct *conn, const char *path,
char *name, char **found_name)
{
struct smb_Dir *cur_dir;
const char *dname;
- BOOL mangled;
+ bool mangled;
char *unmangled_name = NULL;
long curpos;
TALLOC_CTX *ctx = talloc_tos();