diff options
Diffstat (limited to 'src/lib9/dirfwstat.c')
-rw-r--r-- | src/lib9/dirfwstat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib9/dirfwstat.c b/src/lib9/dirfwstat.c index 01eab590..95e18444 100644 --- a/src/lib9/dirfwstat.c +++ b/src/lib9/dirfwstat.c @@ -48,6 +48,10 @@ dirfwstat(int fd, Dir *dir) if(futimes(fd, tv) < 0) ret = -1; } + if(~dir->length != 0){ + if(ftruncate(fd, dir->length) < 0) + ret = -1; + } return ret; } |