mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
Fix a braino: Linux minor device numbers are 8 bits wide and not 10.
This commit is contained in:
parent
1961e4302a
commit
e459b442df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50558
@ -73,7 +73,7 @@ newstat_copyout(struct stat *buf, void *ubuf)
|
||||
{
|
||||
struct linux_newstat tbuf;
|
||||
|
||||
tbuf.stat_dev = uminor(buf->st_dev) | (umajor(buf->st_dev) << 10);
|
||||
tbuf.stat_dev = uminor(buf->st_dev) | (umajor(buf->st_dev) << 8);
|
||||
tbuf.stat_ino = buf->st_ino;
|
||||
tbuf.stat_mode = buf->st_mode;
|
||||
tbuf.stat_nlink = buf->st_nlink;
|
||||
|
@ -73,7 +73,7 @@ newstat_copyout(struct stat *buf, void *ubuf)
|
||||
{
|
||||
struct linux_newstat tbuf;
|
||||
|
||||
tbuf.stat_dev = uminor(buf->st_dev) | (umajor(buf->st_dev) << 10);
|
||||
tbuf.stat_dev = uminor(buf->st_dev) | (umajor(buf->st_dev) << 8);
|
||||
tbuf.stat_ino = buf->st_ino;
|
||||
tbuf.stat_mode = buf->st_mode;
|
||||
tbuf.stat_nlink = buf->st_nlink;
|
||||
|
Loading…
Reference in New Issue
Block a user