From 161e182b65ceda833e0bebc48ef404cdd399f8d7 Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Wed, 8 Jul 2009 14:08:04 -0700 Subject: s3: Remove is_ntfs_stream_name() and split_ntfs_stream_name() Actually I moved split_ntfs_stream_name into torture.c which is the one consumer of it. This could probably be changed at some point. --- source3/smbd/trans2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/smbd/trans2.c') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 62280ddde0..f22700deaa 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1421,6 +1421,7 @@ static bool get_lanman2_dir_entry(TALLOC_CTX *ctx, &smb_fname); if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(fname); + return false; } if (INFO_LEVEL_IS_UNIX(info_level)) { @@ -5554,7 +5555,7 @@ static NTSTATUS smb_file_rename_information(connection_struct *conn, } } else { /* newname must *not* be a stream name. */ - if (is_ntfs_stream_name(newname)) { + if (newname[0] == ':') { return NT_STATUS_NOT_SUPPORTED; } -- cgit