uint16_t attribute;
};
-static NTSTATUS gpo_sync_func(const char *mnt,
- struct file_info *info,
+static NTSTATUS gpo_sync_func(struct file_info *info,
const char *mask,
void *state);
syncronisation call back
****************************************************************/
-static NTSTATUS gpo_sync_func(const char *mnt,
- struct file_info *info,
+static NTSTATUS gpo_sync_func(struct file_info *info,
const char *mask,
void *state)
{
};
static NTSTATUS do_list_helper(
- const char *mntpoint,
struct file_info *f,
- const char *mask,
+ const char *_mask,
void *private_data)
{
struct do_list_helper_state *state = private_data;
int len;
};
-static NTSTATUS completion_remote_filter(const char *mnt,
- struct file_info *f,
+static NTSTATUS completion_remote_filter(struct file_info *f,
const char *mask,
void *state)
{
NTSTATUS cli_smb2_list(struct cli_state *cli,
const char *pathname,
uint32_t attribute,
- NTSTATUS (*fn)(const char *mointpoint,
- struct file_info *finfo,
+ NTSTATUS (*fn)(struct file_info *finfo,
const char *mask,
void *private_data),
void *private_data)
*/
processed_file = true;
- status = fn(cli->dfs_mountpoint,
+ status = fn(
finfo,
pathname,
private_data);
NTSTATUS cli_smb2_list(struct cli_state *cli,
const char *pathname,
uint32_t attribute,
- NTSTATUS (*fn)(const char *mointpoint,
- struct file_info *finfo,
+ NTSTATUS (*fn)(struct file_info *finfo,
const char *mask,
void *private_data),
void *private_data);
NTSTATUS cli_list_old(struct cli_state *cli, const char *mask,
uint32_t attribute,
- NTSTATUS (*fn)(const char *, struct file_info *,
+ NTSTATUS (*fn)(struct file_info *,
const char *, void *), void *state)
{
TALLOC_CTX *frame = talloc_stackframe();
}
num_finfo = talloc_array_length(finfo);
for (i=0; i<num_finfo; i++) {
- status = fn(cli->dfs_mountpoint, &finfo[i], mask, state);
+ status = fn(&finfo[i], mask, state);
if (!NT_STATUS_IS_OK(status)) {
goto fail;
}
NTSTATUS cli_list(struct cli_state *cli,
const char *mask,
uint32_t attribute,
- NTSTATUS (*fn)(const char *mointpoint,
- struct file_info *finfo,
+ NTSTATUS (*fn)(struct file_info *finfo,
const char *mask,
void *private_data),
void *private_data)
}
for (i=0; i<num_finfo; i++) {
- status = fn(
- cli->dfs_mountpoint, &finfo[i], mask, private_data);
+ status = fn(&finfo[i], mask, private_data);
if (!NT_STATUS_IS_OK(status)) {
goto fail;
}
}
static NTSTATUS
-dir_list_fn(const char *mnt,
- struct file_info *finfo,
+dir_list_fn(struct file_info *finfo,
const char *mask,
void *state)
{
*/
static NTSTATUS
-rmdir_list_fn(const char *mnt,
- struct file_info *finfo,
+rmdir_list_fn(struct file_info *finfo,
const char *mask,
void *state)
{
const struct file_info *finfo);
NTSTATUS cli_list_old(struct cli_state *cli,const char *Mask,uint32_t attribute,
- NTSTATUS (*fn)(const char *, struct file_info *,
+ NTSTATUS (*fn)(struct file_info *,
const char *, void *), void *state);
NTSTATUS cli_list_trans(struct cli_state *cli, const char *mask,
uint32_t attribute, int info_level,
NTSTATUS cli_list(struct cli_state *cli,
const char *mask,
uint32_t attribute,
- NTSTATUS (*fn)(const char *mointpoint,
- struct file_info *finfo,
+ NTSTATUS (*fn)(struct file_info *finfo,
const char *mask,
void *private_data),
void *private_data);
/*
* Helper to add directory listing entries to an overall Python list
*/
-static NTSTATUS list_helper(const char *mntpoint, struct file_info *finfo,
+static NTSTATUS list_helper(struct file_info *finfo,
const char *mask, void *state)
{
PyObject *result = (PyObject *)state;
static NTSTATUS do_listing(struct py_cli_state *self,
const char *base_dir, const char *user_mask,
uint16_t attribute,
- NTSTATUS (*callback_fn)(const char *,
- struct file_info *,
+ NTSTATUS (*callback_fn)(struct file_info *,
const char *, void *),
void *priv)
{
/* invoke the callback for the async results (SMBv1 connections) */
for (i = 0; i < num_finfos; i++) {
- status = callback_fn(base_dir, &finfos[i], user_mask,
+ status = callback_fn(&finfos[i], user_mask,
priv);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(finfos);
* or a directory. This function gets invoked as a callback for every item in
* the given directory's listings.
*/
-static NTSTATUS delete_tree_callback(const char *mntpoint,
- struct file_info *finfo,
+static NTSTATUS delete_tree_callback(struct file_info *finfo,
const char *mask, void *priv)
{
char *filepath = NULL;
cli_disk_size(c, "", &bsize, &total, &avail);
}
-static NTSTATUS find_fn(const char *mnt, struct file_info *finfo, const char *name,
+static NTSTATUS find_fn(struct file_info *finfo, const char *name,
void *state)
{
/* noop */
static int total_deleted;
-static NTSTATUS delete_fn(const char *mnt, struct file_info *finfo,
+static NTSTATUS delete_fn(struct file_info *finfo,
const char *name, void *state)
{
NTSTATUS status;
const char *fname;
};
-static NTSTATUS have_file_fn(const char *mntpoint,
- struct file_info *f,
+static NTSTATUS have_file_fn(struct file_info *f,
const char *mask,
void *private_data)
{
};
static NTSTATUS list_cb(
- const char *mntpoint,
struct file_info *f,
const char *mask,
void *private_data)
return correct;
}
-static NTSTATUS list_fn(const char *mnt, struct file_info *finfo,
+static NTSTATUS list_fn(struct file_info *finfo,
const char *name, void *state)
{
int *matched = (int *)state;
return correct;
}
-static NTSTATUS del_fn(const char *mnt, struct file_info *finfo, const char *mask,
+static NTSTATUS del_fn(struct file_info *finfo, const char *mask,
void *state)
{
struct cli_state *pcli = (struct cli_state *)state;
return true;
}
-static NTSTATUS mangle_illegal_list_shortname_fn(const char *mntpoint,
- struct file_info *f,
+static NTSTATUS mangle_illegal_list_shortname_fn(struct file_info *f,
const char *mask,
void *state)
{
return NT_STATUS_OBJECT_NAME_INVALID;
}
-static NTSTATUS mangle_illegal_list_name_fn(const char *mntpoint,
- struct file_info *f,
+static NTSTATUS mangle_illegal_list_name_fn(struct file_info *f,
const char *mask,
void *state)
{
return correct;
}
-static NTSTATUS msdfs_attribute_list_fn(const char *mnt,
- struct file_info *finfo,
+static NTSTATUS msdfs_attribute_list_fn(struct file_info *finfo,
const char *mask,
void *private_data)
{
static const char *illegal_chars = "*\\/?<>|\":";
static char force_shortname_chars[] = " +,.[];=\177";
-static NTSTATUS shortname_del_fn(const char *mnt, struct file_info *finfo,
+static NTSTATUS shortname_del_fn(struct file_info *finfo,
const char *mask, void *state)
{
struct cli_state *pcli = (struct cli_state *)state;
bool val;
};
-static NTSTATUS shortname_list_fn(const char *mnt, struct file_info *finfo,
+static NTSTATUS shortname_list_fn(struct file_info *finfo,
const char *name, void *state)
{
struct sn_state *s = (struct sn_state *)state;
return correct;
}
-static NTSTATUS smb1_wild_mangle_list_fn(const char *mnt,
- struct file_info *finfo,
+static NTSTATUS smb1_wild_mangle_list_fn(struct file_info *finfo,
const char *name,
void *state)
{
* @param state arg-pointer
*
**/
-static NTSTATUS copy_fn(const char *mnt, struct file_info *f,
+static NTSTATUS copy_fn(struct file_info *f,
const char *mask, void *state)
{
static NTSTATUS nt_status;
* propagate_inherited_aces. Children that are themselves directories are passed
* to cli_list again ( to decend the directory structure )
*/
-static NTSTATUS cacl_set_cb(const char *mntpoint, struct file_info *f,
+static NTSTATUS cacl_set_cb(struct file_info *f,
const char *mask, void *state)
{
struct cacl_callback_state *cbstate =