Use full mode for making devices node

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2017-02-01 14:46:39 -08:00
parent bf8f37ba78
commit 245495d54e

View file

@ -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))
}