projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9152504
)
fix closef bug
author
Bill Joy
<bill@ucbvax.Berkeley.EDU>
Mon, 15 Sep 1980 04:07:53 +0000
(20:07 -0800)
committer
Bill Joy
<bill@ucbvax.Berkeley.EDU>
Mon, 15 Sep 1980 04:07:53 +0000
(20:07 -0800)
SCCS-vsn: sys/kern/vfs_vnops.c 3.4
usr/src/sys/kern/vfs_vnops.c
patch
|
blob
|
blame
|
history
diff --git
a/usr/src/sys/kern/vfs_vnops.c
b/usr/src/sys/kern/vfs_vnops.c
index
7f2500b
..
edfe14f
100644
(file)
--- a/
usr/src/sys/kern/vfs_vnops.c
+++ b/
usr/src/sys/kern/vfs_vnops.c
@@
-1,4
+1,4
@@
-/* vfs_vnops.c 3.
3
%G% */
+/* vfs_vnops.c 3.
4
%G% */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
@@
-93,7
+93,8
@@
register struct file *fp;
goto call;
for(fp=file; fp < &file[NFILE]; fp++)
goto call;
for(fp=file; fp < &file[NFILE]; fp++)
- if (fp->f_count && fp->f_inode==ip)
+ if (fp->f_count && (ip=fp->f_inode)->i_un.i_rdev==dev &&
+ (ip->i_mode&IFMT) == (mode&IFMT))
return;
call:
return;
call: