swupd: directory entries in tar should end with "/"

Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
Caio Marcelo de Oliveira Filho
2018-01-12 12:25:41 -08:00
committed by Matthew Johnson
parent 2913b37a66
commit f440521fc0
+1
View File
@@ -182,6 +182,7 @@ func copyFromChrootFile(tw *tar.Writer, chrootDir string, f *File) (fallback boo
if !fi.IsDir() {
return true, fmt.Errorf("couldn't use %s for packing: manifest expected a directory but it is not", realname)
}
hdr.Name = hdr.Name + "/"
hdr.Typeflag = tar.TypeDir
case typeLink:
if fi.Mode()&os.ModeSymlink == 0 {