Page MenuHomeFreeBSD

D43482.diff
No OneTemporary

D43482.diff

diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c
--- a/sys/fs/msdosfs/msdosfs_vnops.c
+++ b/sys/fs/msdosfs/msdosfs_vnops.c
@@ -1180,8 +1180,8 @@
memcpy(oldname, fip->de_Name, 11);
memcpy(fip->de_Name, toname, 11); /* update denode */
error = msdosfs_lookup_ino(tdvp, NULL, tcnp, &scn, &blkoff);
- MPASS(error == EJUSTRETURN);
- error = createde(fip, tdip, NULL, tcnp);
+ if (error == EJUSTRETURN)
+ error = createde(fip, tdip, NULL, tcnp);
if (error != 0) {
memcpy(fip->de_Name, oldname, 11);
goto unlock;

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 14, 7:08 PM (4 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14630854
Default Alt Text
D43482.diff (550 B)

Event Timeline