Page MenuHomeFreeBSD

D43951.diff
No OneTemporary

D43951.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,10 @@
memcpy(oldname, fip->de_Name, 11);
memcpy(fip->de_Name, toname, 11); /* update denode */
error = msdosfs_lookup_ino(tdvp, NULL, tcnp, &scn, &blkoff);
- if (error == EJUSTRETURN)
+ if (error == EJUSTRETURN) {
+ tdip->de_fndoffset = to_diroffset;
error = createde(fip, tdip, NULL, tcnp);
+ }
if (error != 0) {
memcpy(fip->de_Name, oldname, 11);
goto unlock;

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 12:30 AM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14523984
Default Alt Text
D43951.diff (549 B)

Event Timeline