summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-22 20:54:23 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-22 20:54:23 +0000
commit0ca4dc560de140b4da0c6fcbcab9adaa8277f792 (patch)
tree2f7f95ef879ba05ba79a106e88c03c9dea6ccb2f
parentbfc65aa0a6672eb02137118be30650c5f9fef1b4 (diff)
(diskfs_rename_dir): Use new args for diskfs_dirrewrite and
diskfs_dirremove.
-rw-r--r--libdiskfs/dir-renamed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c
index 0dee36c0..1aa12ef3 100644
--- a/libdiskfs/dir-renamed.c
+++ b/libdiskfs/dir-renamed.c
@@ -140,7 +140,7 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, char *fromname,
goto out;
}
- err = diskfs_dirrewrite (fnp, tdp, tmpds);
+ err = diskfs_dirrewrite (fnp, fdp, tdp, "..", tmpds);
if (diskfs_synchronous)
diskfs_file_update (fnp, 1);
if (err)
@@ -169,7 +169,7 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, char *fromname,
if (tnp)
{
- err = diskfs_dirrewrite (tdp, fnp, ds);
+ err = diskfs_dirrewrite (tdp, tnp, fnp, toname, ds);
ds = 0;
if (!err)
{
@@ -199,7 +199,7 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, char *fromname,
if (err)
goto out;
- diskfs_dirremove (fdp, ds);
+ diskfs_dirremove (fdp, fnp, fromname, ds);
ds = 0;
fnp->dn_stat.st_nlink--;
fnp->dn_set_ctime = 1;