diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/adt_tree.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/lib/adt_tree.c b/source3/lib/adt_tree.c index 7f4a39de6e..6d481613c7 100644 --- a/source3/lib/adt_tree.c +++ b/source3/lib/adt_tree.c @@ -46,7 +46,7 @@ static bool trim_tree_keypath( char *path, char **base, char **new_path ) *base = path; - p = strchr( path, '/' ); + p = strchr( path, '\\' ); if ( p ) { *p = '\0'; @@ -214,7 +214,7 @@ WERROR pathtree_add(struct sorted_tree *tree, const char *path, void *data_p) DEBUG(8,("pathtree_add: Enter\n")); - if ( !path || *path != '/' ) { + if ( !path || *path != '\\' ) { DEBUG(0,("pathtree_add: Attempt to add a node with a bad path [%s]\n", path ? path : "NULL" )); return WERR_INVALID_PARAM; @@ -225,7 +225,7 @@ WERROR pathtree_add(struct sorted_tree *tree, const char *path, void *data_p) return WERR_INVALID_PARAM; } - /* move past the first '/' */ + /* move past the first '\\' */ path++; path2 = SMB_STRDUP( path ); @@ -248,7 +248,7 @@ WERROR pathtree_add(struct sorted_tree *tree, const char *path, void *data_p) do { /* break off the remaining part of the path */ - str = strchr( str, '/' ); + str = strchr( str, '\\' ); if ( str ) *str = '\0'; @@ -269,7 +269,7 @@ WERROR pathtree_add(struct sorted_tree *tree, const char *path, void *data_p) base = str; if ( base ) { - *base = '/'; + *base = '\\'; base++; str = base; } @@ -384,7 +384,7 @@ void* pathtree_find(struct sorted_tree *tree, char *key ) /* make a copy to play with */ - if ( *key == '/' ) + if ( *key == '\\' ) keystr = SMB_STRDUP( key+1 ); else keystr = SMB_STRDUP( key ); |