Closed Bug 235797 Opened 20 years ago Closed 20 years ago

bookmarks.html permissions always reset to 600

Categories

(SeaMonkey :: Bookmarks & History, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mrmazda, Assigned: timeless)

Details

Attachments

(1 file)

I see this on Mandrake 10b, SuSE 8.2, and Fedora Core 1, with 1.4.1, 1.6, and
current trunk.

I have several profiles for several versions of Mozilla, but I never run more
than one at a time. I want each to use the very same bookmarks.html file,
regardless whether by link or by the hidden pref to use a particular file in a
particular location. The only way this can work properly is with perms set to
664 or 660, so it isn't working now. Whichever profile owns the file is the only
one allowed to write it. If I set ownership to the actual group owner, which is
not a login owner, no profile ever can write it. If leaving the perms as it
finds them can't be the default setting, then it at least should be possible via
pref.
This is a bookmarks bug....
Assignee: darin → p_ch
Component: Networking: File → Bookmarks
QA Contact: benc → seamonkey.bookmarks
Attached patch copy permissionsSplinter Review
if the move fails, then in certain cases it fails while overwriting the
bookmarks file, this means that the bookmarks file is invalid/lost. there is
only one complete bookmarks file left, it's in a temporary file. killing that
complete bookmarks file is imo not very nice(tm), hence the ifdef. that change
is of course negotiable.

permissions accesses are not part of the critical path, so their rvs are not
fatal to the function.
Assignee: p_ch → timeless
Status: NEW → ASSIGNED
Attachment #142429 - Flags: superreview?(bzbarsky)
Attachment #142429 - Flags: review?(bsmedberg)
Comment on attachment 142429 [details] [diff] [review]
copy permissions

sr=bzbarsky
Attachment #142429 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 142429 [details] [diff] [review]
copy permissions

r=me if it works
Attachment #142429 - Flags: review?(bsmedberg) → review+
mozilla/xpfe/components/bookmarks/src/nsBookmarksService.cpp 	1.307
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: