mirror of
				https://github.com/NVIDIA/nvidia-container-toolkit
				synced 2025-06-26 18:18:24 +00:00 
			
		
		
		
	Fix append assignments
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
		
							parent
							
								
									2f48ab99c3
								
							
						
					
					
						commit
						2e1f94aedf
					
				| @ -70,7 +70,7 @@ func (d *ipcMounts) Mounts() ([]Mount, error) { | |||||||
| 	var modifiedMounts []Mount | 	var modifiedMounts []Mount | ||||||
| 	for _, m := range mounts { | 	for _, m := range mounts { | ||||||
| 		mount := m | 		mount := m | ||||||
| 		mount.Options = append(m.Options, "noexec") | 		mount.Options = append(mount.Options, "noexec") | ||||||
| 		modifiedMounts = append(modifiedMounts, mount) | 		modifiedMounts = append(modifiedMounts, mount) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -51,11 +51,10 @@ func New(opts ...Option) (discover.Discover, error) { | |||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	if o.symlinkLocator == nil { | 	if o.symlinkLocator == nil { | ||||||
| 		searchPaths := append(o.librarySearchPaths, "/") |  | ||||||
| 		o.symlinkLocator = lookup.NewSymlinkLocator( | 		o.symlinkLocator = lookup.NewSymlinkLocator( | ||||||
| 			lookup.WithLogger(o.logger), | 			lookup.WithLogger(o.logger), | ||||||
| 			lookup.WithRoot(o.driverRoot), | 			lookup.WithRoot(o.driverRoot), | ||||||
| 			lookup.WithSearchPaths(searchPaths...), | 			lookup.WithSearchPaths(append(o.librarySearchPaths, "/")...), | ||||||
| 		) | 		) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user