ctdb-scripts: Update detect_init_style to use /etc/os-release
[amitay/samba-autobuild/.git] / libgpo / gpo_filesync.c
index bf0bb5381fc389feb57677bd02046734eac8c36e..b0d1447bd85dd3cc28668e5ec67efa5edaacafc1 100644 (file)
@@ -22,6 +22,7 @@
 #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;
@@ -32,8 +33,7 @@ struct sync_context {
        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);
 
@@ -132,11 +132,10 @@ static NTSTATUS gpo_sync_files(struct sync_context *ctx)
 }
 
 /****************************************************************
- 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)
 {
@@ -155,7 +154,7 @@ static NTSTATUS gpo_sync_func(const char *mnt,
        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));
 
@@ -219,7 +218,7 @@ static NTSTATUS gpo_sync_func(const char *mnt,
 
 
 /****************************************************************
- list a remote directory and download recursivly
+ list a remote directory and download recursively
 ****************************************************************/
 
 NTSTATUS gpo_sync_directories(TALLOC_CTX *mem_ctx,