From owner-svn-ports-head@FreeBSD.ORG Wed Feb 4 19:24:27 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DA841FEC; Wed, 4 Feb 2015 19:24:27 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AC3CE910; Wed, 4 Feb 2015 19:24:27 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t14JOREe010053; Wed, 4 Feb 2015 19:24:27 GMT (envelope-from olgeni@FreeBSD.org) Received: (from olgeni@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t14JORqf010051; Wed, 4 Feb 2015 19:24:27 GMT (envelope-from olgeni@FreeBSD.org) Message-Id: <201502041924.t14JORqf010051@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: olgeni set sender to olgeni@FreeBSD.org using -f From: Jimmy Olgeni Date: Wed, 4 Feb 2015 19:24:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r378411 - in head/sysutils/ansible: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2015 19:24:28 -0000 Author: olgeni Date: Wed Feb 4 19:24:26 2015 New Revision: 378411 URL: https://svnweb.freebsd.org/changeset/ports/378411 QAT: https://qat.redports.org/buildarchive/r378411/ Log: Fix quoting of function identifiers in postgresql_privs (issue 703 in ansible/ansible-modules-core on GitHub). PR: 197325 Submitted by: olgeni Approved by: maintainer Added: head/sysutils/ansible/files/patch-lib_ansible_modules_core_database_postgresql_postgresql__privs.py (contents, props changed) Modified: head/sysutils/ansible/Makefile Modified: head/sysutils/ansible/Makefile ============================================================================== --- head/sysutils/ansible/Makefile Wed Feb 4 19:15:22 2015 (r378410) +++ head/sysutils/ansible/Makefile Wed Feb 4 19:24:26 2015 (r378411) @@ -3,7 +3,7 @@ PORTNAME= ansible PORTVERSION= 1.8.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils python MASTER_SITES= http://releases.ansible.com/ansible/ Added: head/sysutils/ansible/files/patch-lib_ansible_modules_core_database_postgresql_postgresql__privs.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/ansible/files/patch-lib_ansible_modules_core_database_postgresql_postgresql__privs.py Wed Feb 4 19:24:26 2015 (r378411) @@ -0,0 +1,20 @@ + +$FreeBSD$ + +--- lib/ansible/modules/core/database/postgresql/postgresql_privs.py.orig ++++ lib/ansible/modules/core/database/postgresql/postgresql_privs.py +@@ -462,10 +462,13 @@ + if obj_type == 'group': + set_what = ','.join(pg_quote_identifier(i, 'role') for i in obj_ids) + else: ++ # function types are already quoted above ++ if obj_type != 'function': ++ obj_ids = [pg_quote_identifier(i, 'table') for i in obj_ids] + # Note: obj_type has been checked against a set of string literals + # and privs was escaped when it was parsed + set_what = '%s ON %s %s' % (','.join(privs), obj_type, +- ','.join(pg_quote_identifier(i, 'table') for i in obj_ids)) ++ ','.join(obj_ids)) + + # for_whom: SQL-fragment specifying for whom to set the above + if roles == 'PUBLIC':