FreeBSD Bugzilla – Attachment 6681 Details for
Bug 14966
patch to zero spare stat fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.01 KB, created by
kbyanc
on 1999-11-18 01:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
kbyanc
Created:
1999-11-18 01:20:01 UTC
Size:
1.01 KB
patch
obsolete
>--- kern_descrip.c.orig Wed Nov 17 19:50:15 1999 >+++ kern_descrip.c Wed Nov 17 19:50:45 1999 >@@ -548,9 +548,10 @@ > panic("ofstat"); > /*NOTREACHED*/ > } >- cvtstat(&ub, &oub); >- if (error == 0) >+ if (error == 0) { >+ cvtstat(&ub, &oub); > error = copyout((caddr_t)&oub, (caddr_t)uap->sb, sizeof (oub)); >+ } > return (error); > } > #endif /* COMPAT_43 || COMPAT_SUNOS */ >--- vfs_syscalls.c.orig Mon Nov 15 23:25:48 1999 >+++ vfs_syscalls.c Wed Nov 17 19:53:32 1999 >@@ -1677,6 +1677,8 @@ > nsb->st_blksize = sb->st_blksize; > nsb->st_flags = sb->st_flags; > nsb->st_gen = sb->st_gen; >+ nsb->st_qspare[0] = sb->st_qspare[0]; >+ nsb->st_qspare[1] = sb->st_qspare[1]; > } > > #ifndef _SYS_SYSPROTO_H_ >--- vfs_vnops.c.orig Wed Nov 17 19:42:30 1999 >+++ vfs_vnops.c Wed Nov 17 19:54:28 1999 >@@ -375,6 +375,14 @@ > error = VOP_GETATTR(vp, vap, p->p_ucred, p); > if (error) > return (error); >+ >+ /* >+ * Zero the spare stat fields >+ */ >+ sb->st_lspare = 0; >+ sb->st_qspare[0] = 0; >+ sb->st_qspare[1] = 0; >+ > /* > * Copy from vattr table > */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14966
: 6681