Specify a umask when creating tracker_shelf file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24399 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -125,7 +125,7 @@ BDeskWindow::Init(const BMessage *)
|
|||||||
BPath path;
|
BPath path;
|
||||||
if (!BootedInSafeMode() && FSFindTrackerSettingsDir(&path) == B_OK) {
|
if (!BootedInSafeMode() && FSFindTrackerSettingsDir(&path) == B_OK) {
|
||||||
path.Append(kShelfPath);
|
path.Append(kShelfPath);
|
||||||
close(open(path.Path(), O_RDONLY | O_CREAT));
|
close(open(path.Path(), O_RDONLY | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH));
|
||||||
if (get_ref_for_path(path.Path(), &ref) == B_OK)
|
if (get_ref_for_path(path.Path(), &ref) == B_OK)
|
||||||
fDeskShelf = new BShelf(&ref, fPoseView);
|
fDeskShelf = new BShelf(&ref, fPoseView);
|
||||||
if (fDeskShelf)
|
if (fDeskShelf)
|
||||||
|
|||||||
Reference in New Issue
Block a user