Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2006 11:15:17 -0700
From:      John E Hein <jhein@timing.com>
To:        Jung-uk Kim <jkim@FreeBSD.org>
Cc:        freebsd-emulation@FreeBSD.org
Subject:   Re: [PATCH]: possible fix for the fifoor problem
Message-ID:  <17775.8117.809750.563506@gromit.timing.com>
In-Reply-To: <200611291616.33903.jkim@FreeBSD.org>
References:  <20061106174033.GA70360@stud.fit.vutbr.cz> <200611071201.11899.jkim@FreeBSD.org> <17773.62597.411535.477324@gromit.timing.com> <200611291616.33903.jkim@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Jung-uk Kim wrote at 16:16 -0500 on Nov 29, 2006:
 > This is fixed differently in P4:
 > 
 > http://perforce.freebsd.org/changeView.cgi?CH=109652
 > 
 > You can download the latest linux_stats.c directly from P4 web page:
 > 
 > http://perforce.freebsd.org/fileDownLoad.cgi?FSPC=//depot/projects/linuxolator/src/sys/compat/linux/linux%5fstats.c&REV=5
 > 

Thanks.

This patch (a small, but important, subset of your REV 5 above) was
good enough for me on 6.x - it seems to solve the problems I've been
seeing with linux_seamonkey dialog boxes...

Index: src/sys/compat/linux/linux_stats.c
===================================================================
RCS file: /base/FreeBSD-CVS/src/sys/compat/linux/linux_stats.c,v
retrieving revision 1.72.2.3
diff -u -p -r1.72.2.3 linux_stats.c
--- src/sys/compat/linux/linux_stats.c	15 Jun 2006 19:08:03 -0000	1.72.2.3
+++ src/sys/compat/linux/linux_stats.c	29 Nov 2006 21:35:48 -0000
@@ -128,6 +128,8 @@ translate_path_major_minor(struct thread
 	int fd;
 	int temp;
 
+	if (!S_ISCHR(buf->st_mode) && !S_ISBLK(buf->st_mode))
+		return;
 	temp = td->td_retval[0];
 	if (kern_open(td, path, UIO_SYSSPACE, O_RDONLY, 0) != 0)
 		return;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17775.8117.809750.563506>