Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102051763
D43951.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
549 B
Referenced Files
None
Subscribers
None
D43951.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,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
Details
Attached
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)
Attached To
Mode
D43951: Fix MSDOSFS rename (in case target exists)
Attached
Detach File
Event Timeline
Log In to Comment