mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 15:27:32 +09:00
Issue #1905 - Part 4b - Fix issue loading the profile and saving changes to the profile. Based on the following Mozilla bugs: 1659904, 1659905 and 1659077.
This commit is contained in:
parent
35ba45aa32
commit
7e63a3f440
5 changed files with 24 additions and 13 deletions
|
|
@ -320,7 +320,7 @@
|
|||
flags |= Const.O_APPEND;
|
||||
}
|
||||
}
|
||||
return error_or_file(UnixFile.open(path, flags, omode), path);
|
||||
return error_or_file(UnixFile.open(path, flags, ctypes.int(omode)), path);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -675,7 +675,7 @@
|
|||
|
||||
// If necessary, fail if the destination file exists
|
||||
if (options.noOverwrite) {
|
||||
let fd = UnixFile.open(destPath, Const.O_RDONLY, 0);
|
||||
let fd = UnixFile.open(destPath, Const.O_RDONLY);
|
||||
if (fd != -1) {
|
||||
fd.dispose();
|
||||
// The file exists and we have access
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue