Fix bug #7996 - sgid bit lost on folder rename.
[nivanova/samba-autobuild/.git] / source3 / smbd / posix_acls.c
index 1d287160b1d9df63d85d159ace9881dad81429a0..9252ee639fd3be4ae40a520eba5651a16ddde673 100644 (file)
@@ -2656,7 +2656,7 @@ static canon_ace *canonicalise_acl(struct connection_struct *conn,
  Check if the current user group list contains a given group.
 ****************************************************************************/
 
-static bool current_user_in_group(connection_struct *conn, gid_t gid)
+bool current_user_in_group(connection_struct *conn, gid_t gid)
 {
        int i;
        const struct security_unix_token *utok = get_current_utok(conn);