Skip to content

Commit 4dde066

Browse files
authored
core: transaction journal should not be executable (ethereum#23090)
1 parent bef78ef commit 4dde066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/tx_journal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (journal *txJournal) rotate(all map[common.Address]types.Transactions) erro
138138
journal.writer = nil
139139
}
140140
// Generate a new journal with the contents of the current pool
141-
replacement, err := os.OpenFile(journal.path+".new", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0755)
141+
replacement, err := os.OpenFile(journal.path+".new", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
142142
if err != nil {
143143
return err
144144
}
@@ -158,7 +158,7 @@ func (journal *txJournal) rotate(all map[common.Address]types.Transactions) erro
158158
if err = os.Rename(journal.path+".new", journal.path); err != nil {
159159
return err
160160
}
161-
sink, err := os.OpenFile(journal.path, os.O_WRONLY|os.O_APPEND, 0755)
161+
sink, err := os.OpenFile(journal.path, os.O_WRONLY|os.O_APPEND, 0644)
162162
if err != nil {
163163
return err
164164
}

0 commit comments

Comments
 (0)