err = 1;
goto out_close;
}
+ mask = client_clean_name(ctx, mask);
+ if (mask == NULL) {
+ err = 1;
+ goto out_close;
+ }
DBG(5, ("tar_process do_list with mask: %s\n", mask));
status = do_list(mask, TAR_DO_LIST_ATTR, get_file_callback, false, true);
if (!NT_STATUS_IS_OK(status)) {
err = 1;
goto out;
}
+ mask = client_clean_name(ctx, mask);
+ if (mask == NULL) {
+ err = 1;
+ goto out;
+ }
DBG(5, ("incl. path='%s', base='%s', mask='%s'\n",
path, base ? base : "NULL", mask));
err = 1;
goto out;
}
+ base = client_clean_name(ctx, base);
+ if (base == NULL) {
+ err = 1;
+ goto out;
+ }
+
DBG(5, ("cd '%s' before do_list\n", base));
client_set_cur_dir(base);
}
status = NT_STATUS_NO_MEMORY;
goto out;
}
+ remote_name = client_clean_name(ctx, remote_name);
+ if (remote_name == NULL) {
+ status = NT_STATUS_NO_MEMORY;
+ goto out;
+ }
if (strequal(finfo->name, "..") || strequal(finfo->name, ".")) {
goto out;
status = NT_STATUS_NO_MEMORY;
goto out;
}
+ mask = client_clean_name(ctx, mask);
+ if (mask == NULL) {
+ status = NT_STATUS_NO_MEMORY;
+ goto out;
+ }
rc = tar_get_file(&tar_ctx, remote_name, finfo);
if (rc != 0) {
err = 1;
goto out;
}
+ full_path = client_clean_name(ctx, full_path);
+ if (full_path == NULL) {
+ err = 1;
+ goto out;
+ }
if (mode != AE_IFREG && mode != AE_IFDIR) {
DBG(0, ("Skipping non-dir & non-regular file %s\n", full_path));