summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2011-08-02 15:13:36 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-03 14:25:57 +1000
commit6cce5fd43e9036d2d57bb3cd9aef905463acdcce (patch)
tree4cde7ed0ee8266bd4672af134fdbc0a8aae2d8ea
parentc670465c23765bade0d248215cbdddafbd8468ee (diff)
downloadsamba-6cce5fd43e9036d2d57bb3cd9aef905463acdcce.tar.gz
samba-6cce5fd43e9036d2d57bb3cd9aef905463acdcce.tar.bz2
samba-6cce5fd43e9036d2d57bb3cd9aef905463acdcce.zip
s4-policy: Use the correct local directory for stat.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/lib/policy/gp_filesys.c2
1 files changed, 1 insertions, 1 deletions
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) {