"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "archive/tar_freebsd.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_freebsd.go  (containerd-1.5.3):tar_freebsd.go  (containerd-1.5.4)
skipping to change at line 21 skipping to change at line 21
Unless required by applicable law or agreed to in writing, software Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package archive package archive
import "golang.org/x/sys/unix" import (
"os"
"golang.org/x/sys/unix"
)
// mknod wraps unix.Mknod. FreeBSD's unix.Mknod signature is different from // mknod wraps unix.Mknod. FreeBSD's unix.Mknod signature is different from
// other Unix and Unix-like operating systems. // other Unix and Unix-like operating systems.
func mknod(path string, mode uint32, dev uint64) error { func mknod(path string, mode uint32, dev uint64) error {
return unix.Mknod(path, mode, dev) return unix.Mknod(path, mode, dev)
} }
// lsetxattrCreate wraps unix.Lsetxattr with FreeBSD-specific flags and errors // lsetxattrCreate wraps unix.Lsetxattr with FreeBSD-specific flags and errors
func lsetxattrCreate(link string, attr string, data []byte) error { func lsetxattrCreate(link string, attr string, data []byte) error {
err := unix.Lsetxattr(link, attr, data, 0) err := unix.Lsetxattr(link, attr, data, 0)
if err == unix.ENOTSUP || err == unix.EEXIST { if err == unix.ENOTSUP || err == unix.EEXIST {
return nil return nil
} }
return err return err
} }
func lchmod(path string, mode os.FileMode) error {
err := unix.Fchmodat(unix.AT_FDCWD, path, uint32(mode), unix.AT_SYMLINK_N
OFOLLOW)
if err != nil {
err = &os.PathError{Op: "lchmod", Path: path, Err: err}
}
return err
}
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

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