wstat: update opath after a rename

so we truncate the correct file after it
This commit is contained in:
Iruatã Souza 2020-09-05 13:34:49 +02:00
parent 9639caf117
commit 88ebfd13b6
1 changed files with 1 additions and 0 deletions

1
u9fs.c
View File

@ -1041,6 +1041,7 @@ rwstat(Fcall *rx, Fcall *tx)
free(old);
free(dir);
free(opath);
opath = npath;
}
if((u64int)d.length != (u64int)~0 && truncate(opath, d.length) < 0){