Skip to content

Commit a8ae754

Browse files
committed
add version in the filename
Signed-off-by: Eliott Bouhana <[email protected]>
1 parent 2e44aec commit a8ae754

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/lib/dump_waf_darwin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ import (
1919
"syscall"
2020
)
2121

22-
const libddwafDylibName = "libddwaf.dylib"
22+
const libddwafDylibName = "libddwaf-%s.dylib"
2323

2424
// DumpEmbeddedWAF for darwin platform.
2525
// DumpEmbeddedWAF creates a temporary file with the embedded WAF library content and returns the path to the file,
2626
// a closer function and an error. This is the only way to make all implementations of DumpEmbeddedWAF consistent
2727
// across all platforms.
2828
func DumpEmbeddedWAF() (_ string, closer func() error, err error) {
29-
path := filepath.Join(os.TempDir(), libddwafDylibName)
29+
path := filepath.Join(os.TempDir(), fmt.Sprintf(libddwafDylibName, EmbeddedWAFVersion))
3030
var fp *os.File
3131
const nbAttempts = 20
3232

0 commit comments

Comments
 (0)