From: MJ Ray Date: Mon, 30 Jan 2012 21:06:57 +0000 (+0000) Subject: Bug 7476 Remove executable bit from files that probably should not be executed X-Git-Tag: v3.08.00~545 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=d4b132136cef6204dd074205aef94b6b0efc6930;p=koha_gimpoz Bug 7476 Remove executable bit from files that probably should not be executed Signed-off-by: Aleksa Vujicic Signed-off-by: Marcel de Rooy Amended to replace some copy-and-paste comments only with consent of MJR. Signed-off-by: Paul Poulain --- diff --git a/C4/Auth.pm b/C4/Auth.pm old mode 100755 new mode 100644 diff --git a/C4/ImportExportFramework.pm b/C4/ImportExportFramework.pm old mode 100755 new mode 100644 diff --git a/C4/TTParser.pm b/C4/TTParser.pm old mode 100755 new mode 100644 diff --git a/C4/XSLT.pm b/C4/XSLT.pm old mode 100755 new mode 100644 diff --git a/acqui/pdfformat/layout2pages.pm b/acqui/pdfformat/layout2pages.pm old mode 100755 new mode 100644 diff --git a/acqui/pdfformat/layout3pages.pm b/acqui/pdfformat/layout3pages.pm old mode 100755 new mode 100644 diff --git a/etc/zebradb/marc_defs/marc21/biblios/record.abs b/etc/zebradb/marc_defs/marc21/biblios/record.abs old mode 100755 new mode 100644 diff --git a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql old mode 100755 new mode 100644 diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql old mode 100755 new mode 100644 diff --git a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql b/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql old mode 100755 new mode 100644 diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css old mode 100755 new mode 100644 diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc old mode 100755 new mode 100644 diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt old mode 100755 new mode 100644 diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt old mode 100755 new mode 100644 diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl old mode 100755 new mode 100644 diff --git a/xt/find-misplaced-executables b/xt/find-misplaced-executables new file mode 100755 index 0000000000..ebee961886 --- /dev/null +++ b/xt/find-misplaced-executables @@ -0,0 +1,38 @@ +#!/bin/sh +# +# Script to find files that probably should not be executed. +# +# Copyright 2010 Catalyst IT Ltd +# +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it under the +# terms of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# +# Koha is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR +# A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with Koha; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +set -e + +find . \ + -name misc -prune \ + -o -name svc -prune \ + -o -name xt -prune \ + -o -name t -prune \ + -o -name .git -prune \ + -o -name blib -prune \ + -o -name scripts -prune \ + -o -name debian -prune \ + -o -executable -type f \ + '!' -name '*.pl' \ + '!' -name '*.sh' \ + '!' -name '*.plugin' \ + '!' -name unapi \ + -print