summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-07-10 15:10:35 -0700
committerTim Prouty <tprouty@samba.org>2009-07-20 17:26:57 -0700
commit82c3f505fe2e50022b5102e6388dc3b830d235da (patch)
tree58e979ea4e8ccb45e77415595178b4a2bccefc91 /source3/smbd
parentc9b8a017147211d86662f40dcf835b152ab90cf4 (diff)
downloadsamba-82c3f505fe2e50022b5102e6388dc3b830d235da.tar.gz
samba-82c3f505fe2e50022b5102e6388dc3b830d235da.tar.bz2
samba-82c3f505fe2e50022b5102e6388dc3b830d235da.zip
s3: Move is_ntfs_stream*() to filename.c
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/filename.c24
-rw-r--r--source3/smbd/nttrans.c24
2 files changed, 24 insertions, 24 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 29ebc37d1a..1eb6ce5065 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -276,6 +276,30 @@ NTSTATUS copy_smb_filename(TALLOC_CTX *ctx,
}
/****************************************************************************
+ Simple check to determine if the filename is a stream.
+ ***************************************************************************/
+bool is_ntfs_stream_smb_fname(const struct smb_filename *smb_fname)
+{
+ if (lp_posix_pathnames()) {
+ return false;
+ }
+
+ return smb_fname->stream_name;
+}
+
+/****************************************************************************
+ Returns true if the filename's stream == "::$DATA"
+ ***************************************************************************/
+bool is_ntfs_default_stream_smb_fname(const struct smb_filename *smb_fname)
+{
+ if (!is_ntfs_stream_smb_fname(smb_fname)) {
+ return false;
+ }
+
+ return StrCaseCmp(smb_fname->stream_name, "::$DATA") == 0;
+}
+
+/****************************************************************************
This routine is called to convert names from the dos namespace to unix
namespace. It needs to handle any case conversions, mangling, format changes,
streams etc.
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index ff76b7a21f..ecb88296ca 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -272,30 +272,6 @@ void send_nt_replies(connection_struct *conn,
}
/****************************************************************************
- Simple check to determine if the filename is a stream.
- ***************************************************************************/
-bool is_ntfs_stream_smb_fname(const struct smb_filename *smb_fname)
-{
- if (lp_posix_pathnames()) {
- return false;
- }
-
- return smb_fname->stream_name;
-}
-
-/****************************************************************************
- Returns true if the filename's stream == "::$DATA"
- ***************************************************************************/
-bool is_ntfs_default_stream_smb_fname(const struct smb_filename *smb_fname)
-{
- if (!is_ntfs_stream_smb_fname(smb_fname)) {
- return false;
- }
-
- return StrCaseCmp(smb_fname->stream_name, "::$DATA") == 0;
-}
-
-/****************************************************************************
Reply to an NT create and X call on a pipe
****************************************************************************/