From 245495d54e7ee621c7f56ea1ba4ad385f6246519 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Wed, 1 Feb 2017 14:46:39 -0800 Subject: [PATCH] Use full mode for making devices node Signed-off-by: Derek McGowan (github: dmcgowan) --- fs/copy_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/copy_linux.go b/fs/copy_linux.go index f264b4a..293bec9 100644 --- a/fs/copy_linux.go +++ b/fs/copy_linux.go @@ -114,5 +114,5 @@ func copyDevice(dst string, fi os.FileInfo) error { if !ok { return errors.New("unsupported stat type") } - return syscall.Mknod(dst, uint32(fi.Mode().Perm()), int(st.Rdev)) + return syscall.Mknod(dst, uint32(fi.Mode()), int(st.Rdev)) }