Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102539462
D43482.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
550 B
Referenced Files
None
Subscribers
None
D43482.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D43482: msdosfs_rename(): more resilence against corruption
Attached
Detach File
Event Timeline
Log In to Comment