Closed Bug 585512 Opened 14 years ago Closed 14 years ago

log file created with wonky permissions

Categories

(Mozilla Labs :: Contacts, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: myk, Assigned: myk)

Details

Attachments

(1 file)

The log file that the extension creates in the profile directory has wonky permissions:

    ---x--x--T 1 myk myk 0 2010-07-29 14:59 people-log.txt

It looks like the file is being created with permissions set to 600 instead of 0600 (i.e. an octal number, as expected by nsIFile::create).  Here's a patch that fixes that.  I haven't tested it, but I'm pretty sure it's the right fix.
Attachment #463981 - Flags: review?(mhanson)
looks reasonable. sr+
Comment on attachment 463981 [details] [diff] [review]
patch v1: fixes problem

Marking r+ per Mike's comment 1.
Attachment #463981 - Flags: review?(mhanson) → review+
Mike: I notice that the default "branch" is inactive, with all recent development taking place on the tb-0.3.5 branch (or the oauth branch, which was recently merged into tb-0.3.5).  Where should I commit this patch?
Via other channels, Mike told me to push to the oauth branch, which is getting regularly merged into the tb-0.3.5 branch (and both of which will eventually merge into the trunk, most likely), so I have done so.

Fixed by changeset http://hg.mozilla.org/labs/people/rev/3749958a1570.
Status: ASSIGNED → RESOLVED
Closed: 14 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: