Fix a braino: Linux minor device numbers are 8 bits wide and not 10.

This commit is contained in:
Marcel Moolenaar 1999-08-29 11:47:01 +00:00
parent 1961e4302a
commit e459b442df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50558
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;