Closed Bug 1093616 Opened 10 years ago Closed 10 years ago

Default permissions for contrib/replyrc are wrong

Categories

(Bugzilla :: Bugzilla-General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 6.0

People

(Reporter: gerv, Assigned: LpSolit)

References

Details

Attachments

(1 file)

gerv@hare:/usr/src/bugzilla$ git diff
gerv@hare:/usr/src/bugzilla$ ./checksetup.pl 
* This is Bugzilla 5.1 on perl 5.18.2
...
Fixing file permissions...
checksetup.pl complete.

gerv@hare:/usr/src/bugzilla$ git diff
diff --git a/contrib/replyrc b/contrib/replyrc
old mode 100644
new mode 100755
gerv@hare:/usr/src/bugzilla$ 

Looks like the default permissions are not those that checksetup sets the permissions to.

Gerv
checksetup should probably ignore that file (or files that are not scripts).
Depends on: 1088156
Version: 4.5.6 → 5.1
(In reply to Dylan William Hardison [:dylan] from comment #1)
> checksetup should probably ignore that file (or files that are not scripts).

No, permissions should be set correctly. You forgot to update Bugzilla::Install::Filesystem.pm accordingly.
Attached patch patch, v1Splinter Review
Please revert http://git.mozilla.org/?p=bugzilla/bugzilla.git;a=commit;h=da539e8c20bc4facc36002a482d07869872f1011 [github]

This change is wrong.
Assignee: dylan → LpSolit
Status: NEW → ASSIGNED
Attachment #8530500 - Flags: review?(gerv)
Target Milestone: --- → Bugzilla 6.0
Reverted:
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
   da539e8..dd9352e  master -> master

Gerv
The current committed permissions:
-rw-rw-r-- 1 gerv gerv 904 Nov 29 12:47 contrib/replyrc
After checksetup:
-rwx------ 1 gerv www-data 904 Nov 29 12:47 contrib/replyrc
because of this:
         'contrib'             => { files => OWNER_EXECUTE,
                                     dirs => DIR_OWNER_WRITE, },

I think what we actually want is:
-rw------- 1 gerv www-data 904 Nov 29 12:47 contrib/replyrc

which can be achieved by adding:
        'contrib/replyrc'      => { perms => OWNER_WRITE },
at line 170.

Is that right?

Gerv
Comment on attachment 8530500 [details] [diff] [review]
patch, v1

Review of attachment 8530500 [details] [diff] [review]:
-----------------------------------------------------------------

Oh, duh. How did I not see this? Sorry.

Gerv
Attachment #8530500 - Flags: review?(gerv) → review+
Flags: approval?
Flags: approval? → approval+
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
   dd9352e..c0dbbc6  master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: