From: Jeremy Allison Date: Mon, 22 Jun 2009 20:29:49 +0000 (+0200) Subject: Fix bug #6488. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9bddef7e1dd1e772d528ef15046a37691c13dbf;p=thirdparty%2Fsamba.git Fix bug #6488. (cherry picked from commit 689b313404971bb884566710b1468b9bd4091caa) --- diff --git a/source/smbd/posix_acls.c b/source/smbd/posix_acls.c index 5f1c2d9b639..d679304d901 100644 --- a/source/smbd/posix_acls.c +++ b/source/smbd/posix_acls.c @@ -2296,6 +2296,8 @@ static BOOL acl_group_override(connection_struct *conn, gid_t prim_gid, const ch { SMB_STRUCT_STAT sbuf; + ZERO_STRUCT(sbuf); + if ((errno != EPERM) && (errno != EACCES)) { return False; }