#include "libsmb/libsmb.h"
#include "../libgpo/gpo.h"
#include "libgpo/gpo_proto.h"
+#include "lib/util/string_wrappers.h"
struct sync_context {
TALLOC_CTX *mem_ctx;
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
+ synchronisation callback
****************************************************************/
-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)
{
DEBUG(5,("gpo_sync_func: got mask: [%s], name: [%s]\n",
mask, info->name));
- if (info->mode & FILE_ATTRIBUTE_DIRECTORY) {
+ if (info->attr & FILE_ATTRIBUTE_DIRECTORY) {
DEBUG(3,("got dir: [%s]\n", info->name));
/****************************************************************
- list a remote directory and download recursivly
+ list a remote directory and download recursively
****************************************************************/
NTSTATUS gpo_sync_directories(TALLOC_CTX *mem_ctx,