aboutsummaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-05-09 10:25:30 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-05-09 10:25:30 +0000
commit90fb336860fa6b1b93b0db1f02cf7f73e3577c57 (patch)
tree3579751b072f88b9e4c864c92dfb4ddf11087cf2 /sys/compat
parent0510491458ce47578cbb3fe66bbed3e2d9fac9e4 (diff)
downloadsrc-90fb336860fa6b1b93b0db1f02cf7f73e3577c57.tar.gz
src-90fb336860fa6b1b93b0db1f02cf7f73e3577c57.zip
Yet another place which knew too much. Still not sure how much
good this does in the end.
Notes
Notes: svn path=/head/; revision=46778
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c
index dc9090bfcfce..8e9db81a3fdb 100644
--- a/sys/compat/linux/linux_stats.c
+++ b/sys/compat/linux/linux_stats.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_stats.c,v 1.9 1997/11/06 19:29:04 phk Exp $
+ * $Id: linux_stats.c,v 1.10 1999/05/06 18:44:28 peter Exp $
*/
#include <sys/param.h>
@@ -74,7 +74,7 @@ newstat_copyout(struct stat *buf, void *ubuf)
{
struct linux_newstat tbuf;
- tbuf.stat_dev = (buf->st_dev & 0xff) | ((buf->st_dev & 0xff00)<<10);
+ tbuf.stat_dev = minor(buf->st_dev) | (major(buf->st_dev) << 10);
tbuf.stat_ino = buf->st_ino;
tbuf.stat_mode = buf->st_mode;
tbuf.stat_nlink = buf->st_nlink;