Fix a copy/paste error in libpod initializers
When copying the GID map at startup, size the map correctly. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
parent
7ab9c55a12
commit
499b2fa180
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ func WithStorageConfig(config storage.StoreOptions) RuntimeOption {
|
|||
rt.config.StorageConfig.UIDMap = make([]idtools.IDMap, len(config.UIDMap))
|
||||
copy(rt.config.StorageConfig.UIDMap, config.UIDMap)
|
||||
|
||||
rt.config.StorageConfig.GIDMap = make([]idtools.IDMap, len(config.UIDMap))
|
||||
rt.config.StorageConfig.GIDMap = make([]idtools.IDMap, len(config.GIDMap))
|
||||
copy(rt.config.StorageConfig.GIDMap, config.GIDMap)
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue