FreeBSD Bugzilla – Attachment 145758 Details for
Bug 192640
[PATCH] nfsclient: Fix struct padding assumption in DIRHDSIZ
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
(applies with -p0 in CURRENT svn tree)
a.patch (text/plain), 1.33 KB, created by
Conrad Meyer
on 2014-08-13 16:47:29 UTC
(
hide
)
Description:
(applies with -p0 in CURRENT svn tree)
Filename:
MIME Type:
Creator:
Conrad Meyer
Created:
2014-08-13 16:47:29 UTC
Size:
1.33 KB
patch
obsolete
>Index: sys/fs/nfsclient/nfs_clrpcops.c >=================================================================== >--- sys/fs/nfsclient/nfs_clrpcops.c (revision 269947) >+++ sys/fs/nfsclient/nfs_clrpcops.c (working copy) >@@ -65,7 +65,7 @@ > int nfstest_openallsetattr = 0; > #endif /* !APPLEKEXT */ > >-#define DIRHDSIZ (sizeof (struct dirent) - (MAXNAMLEN + 1)) >+#define DIRHDSIZ (__offsetof(struct dirent, d_name)) > > /* > * nfscl_getsameserver() can return one of three values: >Index: sys/fs/nfsclient/nfs_clvnops.c >=================================================================== >--- sys/fs/nfsclient/nfs_clvnops.c (revision 269947) >+++ sys/fs/nfsclient/nfs_clvnops.c (working copy) >@@ -216,7 +216,7 @@ > /* > * Global variables > */ >-#define DIRHDSIZ (sizeof (struct dirent) - (MAXNAMLEN + 1)) >+#define DIRHDSIZ (__offsetof(struct dirent, d_name)) > > SYSCTL_DECL(_vfs_nfs); > >Index: sys/nfsclient/nfs_vnops.c >=================================================================== >--- sys/nfsclient/nfs_vnops.c (revision 269947) >+++ sys/nfsclient/nfs_vnops.c (working copy) >@@ -215,7 +215,7 @@ > enum nfsiod_state nfs_iodwant[NFS_MAXASYNCDAEMON]; > struct nfsmount *nfs_iodmount[NFS_MAXASYNCDAEMON]; > int nfs_numasync = 0; >-#define DIRHDSIZ (sizeof (struct dirent) - (MAXNAMLEN + 1)) >+#define DIRHDSIZ (__offsetof(struct dirent, d_name)) > > SYSCTL_DECL(_vfs_oldnfs); >
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 192640
: 145758