mirror of
				https://github.com/NVIDIA/nvidia-container-toolkit
				synced 2025-06-26 18:18:24 +00:00 
			
		
		
		
	Continue instead of break on error when listing libraries
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
		
							parent
							
								
									7a1cfb48b9
								
							
						
					
					
						commit
						80672d33af
					
				| @ -208,7 +208,7 @@ func (c *ldcache) List() ([]string, []string) { | ||||
| 
 | ||||
| 		n := bytes.IndexByte(value, 0) | ||||
| 		if n < 0 { | ||||
| 			break | ||||
| 			continue | ||||
| 		} | ||||
| 
 | ||||
| 		name := filepath.Join(c.root, strn(value, n)) | ||||
| @ -217,7 +217,7 @@ func (c *ldcache) List() ([]string, []string) { | ||||
| 		path, err := filepath.EvalSymlinks(name) | ||||
| 		if err != nil { | ||||
| 			c.logger.Debugf("could not resolve symlink for %v", name) | ||||
| 			break | ||||
| 			continue | ||||
| 		} | ||||
| 		if processed[path] { | ||||
| 			continue | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user