"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "archive/tar_unix.go" between
containerd-1.5.3.tar.gz and containerd-1.5.4.tar.gz

About: containerd is a container runtime with an emphasis on simplicity, robustness and portability.

tar_unix.go  (containerd-1.5.3):tar_unix.go  (containerd-1.5.4)
skipping to change at line 114 skipping to change at line 114
mode |= unix.S_IFBLK mode |= unix.S_IFBLK
case tar.TypeChar: case tar.TypeChar:
mode |= unix.S_IFCHR mode |= unix.S_IFCHR
case tar.TypeFifo: case tar.TypeFifo:
mode |= unix.S_IFIFO mode |= unix.S_IFIFO
} }
return mknod(path, mode, unix.Mkdev(uint32(hdr.Devmajor), uint32(hdr.Devm inor))) return mknod(path, mode, unix.Mkdev(uint32(hdr.Devmajor), uint32(hdr.Devm inor)))
} }
func handleLChmod(hdr *tar.Header, path string, hdrInfo os.FileInfo) error {
if hdr.Typeflag == tar.TypeLink {
if fi, err := os.Lstat(hdr.Linkname); err == nil && (fi.Mode()&os
.ModeSymlink == 0) {
if err := os.Chmod(path, hdrInfo.Mode()); err != nil && !
os.IsNotExist(err) {
return err
}
}
} else if hdr.Typeflag != tar.TypeSymlink {
if err := os.Chmod(path, hdrInfo.Mode()); err != nil {
return err
}
}
return nil
}
func getxattr(path, attr string) ([]byte, error) { func getxattr(path, attr string) ([]byte, error) {
b, err := sysx.LGetxattr(path, attr) b, err := sysx.LGetxattr(path, attr)
if err == unix.ENOTSUP || err == sysx.ENODATA { if err == unix.ENOTSUP || err == sysx.ENODATA {
return nil, nil return nil, nil
} }
return b, err return b, err
} }
func setxattr(path, key, value string) error { func setxattr(path, key, value string) error {
// Do not set trusted attributes // Do not set trusted attributes
 End of changes. 1 change blocks. 
17 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)