mirror of
https://github.com/mudler/luet.git
synced 2025-09-05 01:00:44 +00:00
Check if the system-target path supplied is absolute
docker.Untar (https://github.com/mudler/luet/blob/master/vendor/github.com/docker/docker/pkg/archive/archive.go#L942) requires absolute paths. We didn't do any input validation before, assuming the path passed by were absolute since they were coming from YAML configuration files, now that this is not the truth anymore we need to sanitize the input. With this change we check if the given path is absolute or relative, if it's relative we calculate the absolute path and use it in place.
This commit is contained in:
@@ -48,7 +48,7 @@ This commands takes multiple packages as arguments and prunes their entries from
|
||||
|
||||
LuetCfg.System.DatabaseEngine = engine
|
||||
LuetCfg.System.DatabasePath = dbpath
|
||||
LuetCfg.System.Rootfs = rootfs
|
||||
LuetCfg.System.SetRootFS(rootfs)
|
||||
|
||||
systemDB := LuetCfg.GetSystemDB()
|
||||
|
||||
|
Reference in New Issue
Block a user