diff options
-rw-r--r-- | libdiskfs/dir-clear.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdiskfs/dir-clear.c b/libdiskfs/dir-clear.c index 480ef0c3..dc92923f 100644 --- a/libdiskfs/dir-clear.c +++ b/libdiskfs/dir-clear.c @@ -56,5 +56,7 @@ diskfs_clear_directory (struct node *dp, pdp->dn_stat.st_nlink--; pdp->dn_set_ctime = 1; + diskfs_truncate (dp, 0); + return err; } |