From b4246f863ce15865a772b0be7a949a46688bcc34 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 9 Mar 2016 16:00:47 -0800 Subject: s3:lib: Move internal lp_posix_pathnames() call out of utility function synthetic_smb_fname_split(). Make it a passed in parameter instead. Signed-off-by: Jeremy Allison Reviewed-by: Uri Simchoni --- source3/lib/filename_util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/lib/filename_util.c') diff --git a/source3/lib/filename_util.c b/source3/lib/filename_util.c index 025a943ecf3..6ee91eca247 100644 --- a/source3/lib/filename_util.c +++ b/source3/lib/filename_util.c @@ -73,14 +73,15 @@ struct smb_filename *synthetic_smb_fname(TALLOC_CTX *mem_ctx, * There are a few legitimate users of this. */ struct smb_filename *synthetic_smb_fname_split(TALLOC_CTX *ctx, - const char *fname) + const char *fname, + bool posix_path) { char *stream_name = NULL; char *base_name = NULL; struct smb_filename *ret; bool ok; - if (lp_posix_pathnames()) { + if (posix_path) { /* No stream name looked for. */ return synthetic_smb_fname(ctx, fname, NULL, NULL); } -- cgit v1.2.1