Skip to content

Commit 70f9af2

Browse files
author
Dmitriy Karpukhin
committed
fix "invalid cross-device link" error when porto journal path and os.TempDir on different fs
1 parent b446c2a commit 70f9af2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

isolate/porto/box.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func (b *Box) dumpJournalEvery(ctx context.Context, every time.Duration) {
212212

213213
func (b *Box) dumpJournal(ctx context.Context) (err error) {
214214
defer apexctx.GetLogger(ctx).Trace("dump journal").Stop(&err)
215-
tempfile, err := ioutil.TempFile("", "portojournalbak")
215+
tempfile, err := ioutil.TempFile(filepath.Dir(b.config.Journal), "portojournalbak")
216216
if err != nil {
217217
return err
218218
}

0 commit comments

Comments
 (0)