From d4b132136cef6204dd074205aef94b6b0efc6930 Mon Sep 17 00:00:00 2001 From: MJ Ray Date: Mon, 30 Jan 2012 21:06:57 +0000 Subject: [PATCH] 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 --- C4/Auth.pm | 0 C4/ImportExportFramework.pm | 0 C4/TTParser.pm | 0 C4/XSLT.pm | 0 acqui/pdfformat/layout2pages.pm | 0 acqui/pdfformat/layout3pages.pm | 0 .../marc_defs/marc21/biblios/record.abs | 0 ...ferences_full_optimal_for_install_only.sql | 0 installer/data/mysql/sysprefs.sql | 0 ...ferences_full_optimal_for_install_only.sql | 0 koha-tmpl/opac-tmpl/prog/en/css/opac.css | 0 .../prog/en/includes/opac-facets.inc | 0 .../opac-tmpl/prog/en/modules/opac-detail.tt | 0 .../opac-tmpl/prog/en/modules/opac-results.tt | 0 .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 0 xt/find-misplaced-executables | 38 +++++++++++++++++++ 16 files changed, 38 insertions(+) mode change 100755 => 100644 C4/Auth.pm mode change 100755 => 100644 C4/ImportExportFramework.pm mode change 100755 => 100644 C4/TTParser.pm mode change 100755 => 100644 C4/XSLT.pm mode change 100755 => 100644 acqui/pdfformat/layout2pages.pm mode change 100755 => 100644 acqui/pdfformat/layout3pages.pm mode change 100755 => 100644 etc/zebradb/marc_defs/marc21/biblios/record.abs mode change 100755 => 100644 installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql mode change 100755 => 100644 installer/data/mysql/sysprefs.sql mode change 100755 => 100644 installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql mode change 100755 => 100644 koha-tmpl/opac-tmpl/prog/en/css/opac.css mode change 100755 => 100644 koha-tmpl/opac-tmpl/prog/en/includes/opac-facets.inc mode change 100755 => 100644 koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt mode change 100755 => 100644 koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt mode change 100755 => 100644 koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl create mode 100755 xt/find-misplaced-executables 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 -- 2.39.5