Skip to content

Commit

Permalink
Merge branch 'fix/logretrieval' into 'develop'
Browse files Browse the repository at this point in the history
fix: Fix logretireval permission denied error on unix environment

See merge request prey/js/prey-node-client!1154
  • Loading branch information
Claudio committed Jan 15, 2025
2 parents 53a52c8 + 6ebaa8d commit d8515c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/agent/actions/logretrieval/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ exports.start = (id, options, cb) => {
jsonInformation = JSON.stringify(txtParsed, null, 2);
}
// eslint-disable-next-line consistent-return
fs.writeFile(wifiDataPath, jsonInformation, { flag: 'w' }, (error) => {
fs.writeFile(wifiDataPath, jsonInformation, { flag: 'w+' }, (error) => {
if (error) return done(id, error);
// eslint-disable-next-line consistent-return
collectFiles(LOGS_ZIP_PATH, (err, bytes) => {
Expand Down

0 comments on commit d8515c7

Please sign in to comment.