unsigned int num_streams = 0;
TALLOC_CTX *frame = talloc_stackframe();
NTSTATUS status;
+ bool saved_posix_pathnames;
status = vfs_streaminfo(conn, NULL, fname, talloc_tos(),
&num_streams, &stream_info);
return NT_STATUS_OK;
}
+ /*
+ * Any stream names *must* be treated as Windows
+ * pathnames, even if we're using UNIX extensions.
+ */
+
+ saved_posix_pathnames = lp_set_posix_pathnames(false);
+
for (i=0; i<num_streams; i++) {
int res;
struct smb_filename *smb_fname_stream;
}
fail:
+
+ (void)lp_set_posix_pathnames(saved_posix_pathnames);
TALLOC_FREE(frame);
return status;
}
unsigned int num_streams = 0;
TALLOC_CTX *frame = talloc_stackframe();
NTSTATUS status;
+ bool saved_posix_pathnames;
status = vfs_streaminfo(conn, NULL, fname, talloc_tos(),
&num_streams, &stream_info);
goto fail;
}
+ /*
+ * Any stream names *must* be treated as Windows
+ * pathnames, even if we're using UNIX extensions.
+ */
+
+ saved_posix_pathnames = lp_set_posix_pathnames(false);
+
for (i=0; i<num_streams; i++) {
struct smb_filename *smb_fname;
}
fail:
+
+ (void)lp_set_posix_pathnames(saved_posix_pathnames);
TALLOC_FREE(frame);
return status;
}