From 9c86d35a3f0af4a793fada7dfe726e9cc66782ea Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 5 Jul 2018 12:30:54 +0200 Subject: [PATCH] Cleanup shebang and executable bit - Add missing executable bits to all scripts - Remove executable bits from all files that are not scripts, e.g. js, html, and Python libraries. - Remove Python shebang from all Python library files. It's frown upon to have executable library files in site-packages. Signed-off-by: Christian Heimes Reviewed-By: Armando Neto --- daemons/ipa-otpd/test.py | 1 - daemons/ipa-slapi-plugins/topology/ipa-topology-conf.ldif | 0 freeipa.spec.in | 0 install/restart_scripts/renew_ca_cert | 0 install/restart_scripts/renew_ra_cert | 0 install/restart_scripts/restart_dirsrv | 0 install/restart_scripts/restart_httpd | 0 install/restart_scripts/stop_pkicad | 0 install/tools/ipa-cacert-manage | 0 install/tools/ipa-kra-install | 0 install/tools/ipa-server-upgrade | 0 install/ui/less/patternfly/variables.less | 0 install/ui/src/freeipa/certificate.js | 0 install/ui/test/aci_tests.html | 0 install/ui/test/certificate_tests.html | 0 install/ui/test/certificate_tests.js | 0 install/ui/test/ordered_map_tests.html | 0 install/ui/test/ordered_map_tests.js | 0 install/ui/test/widget_tests.html | 0 ipaclient/csrgen_ffi.py | 2 -- ipaclient/setup.py | 1 - ipalib/aci.py | 0 ipalib/setup.py | 1 - ipaplatform/setup.py | 1 - ipapython/setup.py | 1 - ipaserver/dnssec/localhsm.py | 1 - ipaserver/dnssec/odsmgr.py | 1 - ipaserver/install/ipa_kra_install.py | 1 - ipaserver/setup.py | 2 -- ipatests/pytest_plugins/beakerlib.py | 1 - ipatests/setup.py | 1 - ipatests/test_ipapython/test_ipavalidate.py | 4 ---- ipatests/test_ipaserver/test_install/test_adtrustinstance.py | 0 pypi/freeipa/setup.py | 0 pypi/ipa/setup.py | 0 pypi/ipaserver/setup.py | 0 pypi/ipatests/setup.py | 0 pypi/test_placeholder.py | 1 - 38 files changed, 19 deletions(-) mode change 100755 => 100644 daemons/ipa-slapi-plugins/topology/ipa-topology-conf.ldif mode change 100755 => 100644 freeipa.spec.in mode change 100644 => 100755 install/restart_scripts/renew_ca_cert mode change 100644 => 100755 install/restart_scripts/renew_ra_cert mode change 100644 => 100755 install/restart_scripts/restart_dirsrv mode change 100644 => 100755 install/restart_scripts/restart_httpd mode change 100644 => 100755 install/restart_scripts/stop_pkicad mode change 100644 => 100755 install/tools/ipa-cacert-manage mode change 100644 => 100755 install/tools/ipa-kra-install mode change 100644 => 100755 install/tools/ipa-server-upgrade mode change 100755 => 100644 install/ui/less/patternfly/variables.less mode change 100755 => 100644 install/ui/src/freeipa/certificate.js mode change 100755 => 100644 install/ui/test/aci_tests.html mode change 100755 => 100644 install/ui/test/certificate_tests.html mode change 100755 => 100644 install/ui/test/certificate_tests.js mode change 100755 => 100644 install/ui/test/ordered_map_tests.html mode change 100755 => 100644 install/ui/test/ordered_map_tests.js mode change 100755 => 100644 install/ui/test/widget_tests.html mode change 100755 => 100644 ipalib/aci.py mode change 100755 => 100644 ipapython/setup.py mode change 100755 => 100644 ipaserver/dnssec/localhsm.py mode change 100755 => 100644 ipaserver/setup.py mode change 100755 => 100644 ipatests/test_ipaserver/test_install/test_adtrustinstance.py mode change 100755 => 100644 pypi/freeipa/setup.py mode change 100755 => 100644 pypi/ipa/setup.py mode change 100755 => 100644 pypi/ipaserver/setup.py mode change 100755 => 100644 pypi/ipatests/setup.py diff --git a/daemons/ipa-otpd/test.py b/daemons/ipa-otpd/test.py index 5c288e57c..81c0e077d 100644 --- a/daemons/ipa-otpd/test.py +++ b/daemons/ipa-otpd/test.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # # FreeIPA 2FA companion daemon # diff --git a/daemons/ipa-slapi-plugins/topology/ipa-topology-conf.ldif b/daemons/ipa-slapi-plugins/topology/ipa-topology-conf.ldif old mode 100755 new mode 100644 diff --git a/freeipa.spec.in b/freeipa.spec.in old mode 100755 new mode 100644 diff --git a/install/restart_scripts/renew_ca_cert b/install/restart_scripts/renew_ca_cert old mode 100644 new mode 100755 diff --git a/install/restart_scripts/renew_ra_cert b/install/restart_scripts/renew_ra_cert old mode 100644 new mode 100755 diff --git a/install/restart_scripts/restart_dirsrv b/install/restart_scripts/restart_dirsrv old mode 100644 new mode 100755 diff --git a/install/restart_scripts/restart_httpd b/install/restart_scripts/restart_httpd old mode 100644 new mode 100755 diff --git a/install/restart_scripts/stop_pkicad b/install/restart_scripts/stop_pkicad old mode 100644 new mode 100755 diff --git a/install/tools/ipa-cacert-manage b/install/tools/ipa-cacert-manage old mode 100644 new mode 100755 diff --git a/install/tools/ipa-kra-install b/install/tools/ipa-kra-install old mode 100644 new mode 100755 diff --git a/install/tools/ipa-server-upgrade b/install/tools/ipa-server-upgrade old mode 100644 new mode 100755 diff --git a/install/ui/less/patternfly/variables.less b/install/ui/less/patternfly/variables.less old mode 100755 new mode 100644 diff --git a/install/ui/src/freeipa/certificate.js b/install/ui/src/freeipa/certificate.js old mode 100755 new mode 100644 diff --git a/install/ui/test/aci_tests.html b/install/ui/test/aci_tests.html old mode 100755 new mode 100644 diff --git a/install/ui/test/certificate_tests.html b/install/ui/test/certificate_tests.html old mode 100755 new mode 100644 diff --git a/install/ui/test/certificate_tests.js b/install/ui/test/certificate_tests.js old mode 100755 new mode 100644 diff --git a/install/ui/test/ordered_map_tests.html b/install/ui/test/ordered_map_tests.html old mode 100755 new mode 100644 diff --git a/install/ui/test/ordered_map_tests.js b/install/ui/test/ordered_map_tests.js old mode 100755 new mode 100644 diff --git a/install/ui/test/widget_tests.html b/install/ui/test/widget_tests.html old mode 100755 new mode 100644 diff --git a/ipaclient/csrgen_ffi.py b/ipaclient/csrgen_ffi.py index c5428cfd4..10a20bdae 100644 --- a/ipaclient/csrgen_ffi.py +++ b/ipaclient/csrgen_ffi.py @@ -1,5 +1,3 @@ -#!/usr/bin/python3 - from cffi import FFI import ctypes.util diff --git a/ipaclient/setup.py b/ipaclient/setup.py index aaab5c979..8eb9aeedc 100644 --- a/ipaclient/setup.py +++ b/ipaclient/setup.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # Copyright (C) 2007 Red Hat # see file 'COPYING' for use and warranty information # diff --git a/ipalib/aci.py b/ipalib/aci.py old mode 100755 new mode 100644 diff --git a/ipalib/setup.py b/ipalib/setup.py index d21f36e33..32f55c2f0 100644 --- a/ipalib/setup.py +++ b/ipalib/setup.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # Copyright (C) 2007 Red Hat # see file 'COPYING' for use and warranty information # diff --git a/ipaplatform/setup.py b/ipaplatform/setup.py index 32cee9f87..69101794e 100644 --- a/ipaplatform/setup.py +++ b/ipaplatform/setup.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # Copyright (C) 2014 Red Hat # see file 'COPYING' for use and warranty information # diff --git a/ipapython/setup.py b/ipapython/setup.py old mode 100755 new mode 100644 index 1d0ac043f..b1f006ef1 --- a/ipapython/setup.py +++ b/ipapython/setup.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # Copyright (C) 2007 Red Hat # see file 'COPYING' for use and warranty information # diff --git a/ipaserver/dnssec/localhsm.py b/ipaserver/dnssec/localhsm.py old mode 100755 new mode 100644 index 6a85ce3a3..d02fdbe14 --- a/ipaserver/dnssec/localhsm.py +++ b/ipaserver/dnssec/localhsm.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # # Copyright (C) 2014 FreeIPA Contributors see COPYING for license # diff --git a/ipaserver/dnssec/odsmgr.py b/ipaserver/dnssec/odsmgr.py index 4bd051e28..7cdd6e43b 100644 --- a/ipaserver/dnssec/odsmgr.py +++ b/ipaserver/dnssec/odsmgr.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # # Copyright (C) 2014 FreeIPA Contributors see COPYING for license # diff --git a/ipaserver/install/ipa_kra_install.py b/ipaserver/install/ipa_kra_install.py index cb097e9fe..b8be794de 100644 --- a/ipaserver/install/ipa_kra_install.py +++ b/ipaserver/install/ipa_kra_install.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 -E # Authors: Ade Lee # # Copyright (C) 2014 Red Hat diff --git a/ipaserver/setup.py b/ipaserver/setup.py old mode 100755 new mode 100644 index 0f7d4709f..5ee50efe9 --- a/ipaserver/setup.py +++ b/ipaserver/setup.py @@ -1,5 +1,3 @@ -#!/usr/bin/python3 - # Authors: # Jason Gerard DeRose # diff --git a/ipatests/pytest_plugins/beakerlib.py b/ipatests/pytest_plugins/beakerlib.py index 53e2a80e0..0668b48a2 100644 --- a/ipatests/pytest_plugins/beakerlib.py +++ b/ipatests/pytest_plugins/beakerlib.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # Copyright (C) 2014 Red Hat # see file 'COPYING' for use and warranty information # diff --git a/ipatests/setup.py b/ipatests/setup.py index 274787d4d..7cad27923 100644 --- a/ipatests/setup.py +++ b/ipatests/setup.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # Copyright (C) 2007 Red Hat # see file 'COPYING' for use and warranty information # diff --git a/ipatests/test_ipapython/test_ipavalidate.py b/ipatests/test_ipapython/test_ipavalidate.py index a4e5ddefe..fcf7c73f9 100644 --- a/ipatests/test_ipapython/test_ipavalidate.py +++ b/ipatests/test_ipapython/test_ipavalidate.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 -E # # Copyright (C) 2007 Red Hat # see file 'COPYING' for use and warranty information @@ -89,6 +88,3 @@ class TestValidate(unittest.TestCase): self.assertEqual(False, ipavalidate.GoodName("foo%bar")) self.assertEqual(False, ipavalidate.GoodName("*foo")) self.assertEqual(False, ipavalidate.GoodName("$foo.bar$")) - -if __name__ == '__main__': - unittest.main() diff --git a/ipatests/test_ipaserver/test_install/test_adtrustinstance.py b/ipatests/test_ipaserver/test_install/test_adtrustinstance.py old mode 100755 new mode 100644 diff --git a/pypi/freeipa/setup.py b/pypi/freeipa/setup.py old mode 100755 new mode 100644 diff --git a/pypi/ipa/setup.py b/pypi/ipa/setup.py old mode 100755 new mode 100644 diff --git a/pypi/ipaserver/setup.py b/pypi/ipaserver/setup.py old mode 100755 new mode 100644 diff --git a/pypi/ipatests/setup.py b/pypi/ipatests/setup.py old mode 100755 new mode 100644 diff --git a/pypi/test_placeholder.py b/pypi/test_placeholder.py index 2196f683c..73f4faa61 100644 --- a/pypi/test_placeholder.py +++ b/pypi/test_placeholder.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # Copyright (C) 2017 FreeIPA Contributors see COPYING for license import importlib