mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
fix: Update permissions for trustedFolders.json file to make it more … (#7685)
This commit is contained in:
@@ -169,7 +169,7 @@ describe('Trusted Folders Loading', () => {
|
|||||||
expect(mockFsWriteFileSync).toHaveBeenCalledWith(
|
expect(mockFsWriteFileSync).toHaveBeenCalledWith(
|
||||||
USER_TRUSTED_FOLDERS_PATH,
|
USER_TRUSTED_FOLDERS_PATH,
|
||||||
JSON.stringify({ '/new/path': TrustLevel.TRUST_FOLDER }, null, 2),
|
JSON.stringify({ '/new/path': TrustLevel.TRUST_FOLDER }, null, 2),
|
||||||
'utf-8',
|
{ encoding: 'utf-8', mode: 0o600 },
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ export function saveTrustedFolders(
|
|||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
trustedFoldersFile.path,
|
trustedFoldersFile.path,
|
||||||
JSON.stringify(trustedFoldersFile.config, null, 2),
|
JSON.stringify(trustedFoldersFile.config, null, 2),
|
||||||
'utf-8',
|
{ encoding: 'utf-8', mode: 0o600 },
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error saving trusted folders file:', error);
|
console.error('Error saving trusted folders file:', error);
|
||||||
|
|||||||
Reference in New Issue
Block a user