From 6cce5fd43e9036d2d57bb3cd9aef905463acdcce Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 2 Aug 2011 15:13:36 +1000 Subject: s4-policy: Use the correct local directory for stat. Signed-off-by: Andrew Bartlett --- source4/lib/policy/gp_filesys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/lib/policy/gp_filesys.c b/source4/lib/policy/gp_filesys.c index 00d04d5367..6e0cbedf59 100644 --- a/source4/lib/policy/gp_filesys.c +++ b/source4/lib/policy/gp_filesys.c @@ -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) { -- cgit