mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
msdosfs_rename(): handle errors from msdosfs_lookup_ino()
PR: 276408
(cherry picked from commit be0df84849)
This commit is contained in:
parent
3f2c2dda26
commit
e465acd0f6
1 changed files with 2 additions and 2 deletions
|
|
@ -1180,8 +1180,8 @@ relock:
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue