diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-05-09 15:35:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-05-09 15:35:20 +0000 |
commit | ddaf007d2ca1ad97fc037cf902214116abcae919 (patch) | |
tree | 999dbda12c763b731f821994827143811feeafc8 /sys | |
parent | d948a72dc71bf932a0a5c4ff661465b412553a5d (diff) |
Nope, the right byte layout is happening, but we still need to figure out
a reported baddir panic. Discussed with guenther tedu kettenis millert..
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ufs/ufs_lookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c index fa367669209..ec8466a4c30 100644 --- a/sys/ufs/ufs/ufs_lookup.c +++ b/sys/ufs/ufs/ufs_lookup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufs_lookup.c,v 1.56 2019/05/09 14:53:18 deraadt Exp $ */ +/* $OpenBSD: ufs_lookup.c,v 1.57 2019/05/09 15:35:19 deraadt Exp $ */ /* $NetBSD: ufs_lookup.c,v 1.7 1996/02/09 22:36:06 christos Exp $ */ /* @@ -671,7 +671,7 @@ ufs_makedirentry(struct inode *ip, struct componentname *cnp, #endif newdirp->d_ino = ip->i_number; newdirp->d_namlen = cnp->cn_namelen; - memset(newdirp->d_name + ((cnp->cn_namelen+1) & ~(DIR_ROUNDUP-1)), + memset(newdirp->d_name + (cnp->cn_namelen & ~(DIR_ROUNDUP-1)), 0, DIR_ROUNDUP); memcpy(newdirp->d_name, cnp->cn_nameptr, cnp->cn_namelen); if (OFSFMT(ip)) { |