From c5f67891528698e3848c7fc464bf1755c56b4477 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 24 Mar 2010 10:31:14 -0700 Subject: Fix valgrind warning when source and dest stat are identical. Jeremy. --- source3/smbd/posix_acls.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index c9fdc714c7..e47a260050 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -2702,7 +2702,9 @@ static bool set_canon_ace_list(files_struct *fsp, mode_t mask_perms = 0; /* Use the psbuf that was passed in. */ - fsp->fsp_name->st = *psbuf; + if (psbuf != &fsp->fsp_name->st) { + fsp->fsp_name->st = *psbuf; + } #if defined(POSIX_ACL_NEEDS_MASK) /* HP-UX always wants to have a mask (called "class" there). */ -- cgit