Page MenuHomeFreeBSD

D40692.diff
No OneTemporary

D40692.diff

diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c
--- a/sys/fs/pseudofs/pseudofs_vnops.c
+++ b/sys/fs/pseudofs/pseudofs_vnops.c
@@ -537,8 +537,8 @@
for (pn = pd->pn_nodes; pn != NULL; pn = pn->pn_next)
if (pn->pn_type == pfstype_procdir)
pdn = pn;
- else if (pn->pn_name[namelen] == '\0' &&
- bcmp(pname, pn->pn_name, namelen) == 0) {
+ else if (strncmp(pname, pn->pn_name, namelen) == 0 &&
+ pn->pn_name[namelen] == '\0') {
pfs_unlock(pd);
goto got_pnode;
}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 2:29 PM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14740417
Default Alt Text
D40692.diff (523 B)

Event Timeline