s4-policy: Use the correct local directory for stat.
authorAmitay Isaacs <amitay@gmail.com>
Tue, 2 Aug 2011 05:13:36 +0000 (15:13 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 3 Aug 2011 04:25:57 +0000 (14:25 +1000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/lib/policy/gp_filesys.c

index 00d04d536757dcf2b09ed4bd2d6c01c09c09414d..6e0cbedf5967abed57bb01f67b4e985ccc190a1e 100644 (file)
@@ -417,7 +417,7 @@ static NTSTATUS push_recursive (struct gp_context *gp_ctx, const char *local_pat
                                                    remote_path, dirent->d_name);
                NT_STATUS_HAVE_NO_MEMORY(entry_remote_path);
 
-               if (stat(dirent->d_name, &s) != 0) {
+               if (stat(entry_local_path, &s) != 0) {
                        return NT_STATUS_UNSUCCESSFUL;
                }
                if (s.st_mode & S_IFDIR) {