From: Amitay Isaacs Date: Tue, 2 Aug 2011 05:13:36 +0000 (+1000) Subject: s4-policy: Use the correct local directory for stat. X-Git-Tag: talloc-2.0.6~123 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=6cce5fd43e9036d2d57bb3cd9aef905463acdcce;p=samba.git s4-policy: Use the correct local directory for stat. Signed-off-by: Andrew Bartlett --- diff --git a/source4/lib/policy/gp_filesys.c b/source4/lib/policy/gp_filesys.c index 00d04d53675..6e0cbedf596 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) {