mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 10:00:01 +08:00 
			
		
		
		
	Bump github.com/containers/common from 0.35.0 to 0.35.3
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.35.0 to 0.35.3. - [Release notes](https://github.com/containers/common/releases) - [Commits](https://github.com/containers/common/compare/v0.35.0...v0.35.3) Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
		![49699333+dependabot[bot]@users.noreply.github.com](/assets/img/avatar_default.png) dependabot[bot]
					dependabot[bot]
				
			
				
					committed by
					
						 Giuseppe Scrivano
						Giuseppe Scrivano
					
				
			
			
				
	
			
			
			 Giuseppe Scrivano
						Giuseppe Scrivano
					
				
			
						parent
						
							61e3b152fc
						
					
				
				
					commit
					f46b34ecd2
				
			
							
								
								
									
										7
									
								
								vendor/github.com/containers/common/pkg/parse/parse_unix.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								vendor/github.com/containers/common/pkg/parse/parse_unix.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -7,13 +7,12 @@ import ( | ||||
| 	"path/filepath" | ||||
|  | ||||
| 	"github.com/containers/storage/pkg/unshare" | ||||
| 	"github.com/opencontainers/runc/libcontainer/configs" | ||||
| 	"github.com/opencontainers/runc/libcontainer/devices" | ||||
| 	"github.com/pkg/errors" | ||||
| ) | ||||
|  | ||||
| func DeviceFromPath(device string) ([]configs.Device, error) { | ||||
| 	var devs []configs.Device | ||||
| func DeviceFromPath(device string) ([]devices.Device, error) { | ||||
| 	var devs []devices.Device | ||||
| 	src, dst, permissions, err := Device(device) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| @ -44,7 +43,7 @@ func DeviceFromPath(device string) ([]configs.Device, error) { | ||||
| 	} | ||||
| 	for _, d := range srcDevices { | ||||
| 		d.Path = filepath.Join(dst, filepath.Base(d.Path)) | ||||
| 		d.Permissions = configs.DevicePermissions(permissions) | ||||
| 		d.Permissions = devices.Permissions(permissions) | ||||
| 		devs = append(devs, *d) | ||||
| 	} | ||||
| 	return devs, nil | ||||
|  | ||||
		Reference in New Issue
	
	Block a user