diff options
author | Jeremy Allison <jra@samba.org> | 2016-03-09 16:00:47 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-03-10 20:55:09 +0100 |
commit | b4246f863ce15865a772b0be7a949a46688bcc34 (patch) | |
tree | 89cd738a32f96e655cb0b301c5777b07b830f1bc /source3/lib/filename_util.c | |
parent | 153af65e445e8491fb436e7112b579ed4603ca01 (diff) | |
download | samba-b4246f863ce15865a772b0be7a949a46688bcc34.tar.gz |
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 <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Diffstat (limited to 'source3/lib/filename_util.c')
-rw-r--r-- | source3/lib/filename_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |