diff --git a/u9fs.c b/u9fs.c index ae06496..ea0391c 100644 --- a/u9fs.c +++ b/u9fs.c @@ -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){