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
1 changed files with 1 additions and 1 deletions

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