summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-09 07:52:40 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-09 07:52:40 +0100
commitef49edd7887c2e334f215ba7b584e1224bf2ab85 (patch)
tree06dda9de1e33c43133df3e40e6a26aed9d945ecf /contrib
parentb04d384d144019f86b92cb8b729cdf18a821c097 (diff)
downloadbugzilla-ef49edd7887c2e334f215ba7b584e1224bf2ab85.tar.gz
bugzilla-ef49edd7887c2e334f215ba7b584e1224bf2ab85.tar.xz
Bug 374632: A separate script just to fix file/directory permissions
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/fixperms.pl28
1 files changed, 28 insertions, 0 deletions
diff --git a/contrib/fixperms.pl b/contrib/fixperms.pl
new file mode 100644
index 000000000..406c149cb
--- /dev/null
+++ b/contrib/fixperms.pl
@@ -0,0 +1,28 @@
+#!/usr/bin/perl -w
+#
+# The contents of this file are subject to the Mozilla Public
+# License Version 1.1 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS
+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# rights and limitations under the License.
+#
+# The Original Code is the Bugzilla Bug Tracking System.
+#
+# The Initial Developer of the Original Code is Everything Solved, Inc.
+# Portions created by the Initial Developer are Copyright (C) 2010 the
+# Initial Developer. All Rights Reserved.
+#
+# Contributor(s):
+# Max Kanat-Alexander <mkanat@bugzilla.org>
+
+use strict;
+use warnings;
+use lib qw(. lib);
+
+use Bugzilla;
+use Bugzilla::Install::Filesystem qw(fix_all_file_permissions);
+fix_all_file_permissions(1);