Use full mode for making devices node
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
bf8f37ba78
commit
245495d54e
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue