[PATCH]: possible fix for the fifoor problem
John E Hein
jhein at timing.com
Thu Nov 30 10:15:23 PST 2006
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;
More information about the freebsd-emulation
mailing list