good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 4dde0665 authored by Nye Liu's avatar Nye Liu Committed by GitHub
Browse files

core: transaction journal should not be executable (#23090)

parent bef78efb
Branches
Tags
No related merge requests found
...@@ -138,7 +138,7 @@ func (journal *txJournal) rotate(all map[common.Address]types.Transactions) erro ...@@ -138,7 +138,7 @@ func (journal *txJournal) rotate(all map[common.Address]types.Transactions) erro
journal.writer = nil journal.writer = nil
} }
// Generate a new journal with the contents of the current pool // Generate a new journal with the contents of the current pool
replacement, err := os.OpenFile(journal.path+".new", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0755) replacement, err := os.OpenFile(journal.path+".new", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil { if err != nil {
return err return err
} }
...@@ -158,7 +158,7 @@ func (journal *txJournal) rotate(all map[common.Address]types.Transactions) erro ...@@ -158,7 +158,7 @@ func (journal *txJournal) rotate(all map[common.Address]types.Transactions) erro
if err = os.Rename(journal.path+".new", journal.path); err != nil { if err = os.Rename(journal.path+".new", journal.path); err != nil {
return err return err
} }
sink, err := os.OpenFile(journal.path, os.O_WRONLY|os.O_APPEND, 0755) sink, err := os.OpenFile(journal.path, os.O_WRONLY|os.O_APPEND, 0644)
if err != nil { if err != nil {
return err return err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment