File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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. 
2828func  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
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments