summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-10-12 02:49:17 +0000
committerRoland McGrath <roland@gnu.org>2001-10-12 02:49:17 +0000
commit76eb769756bd697388c292080299940c81a3d38d (patch)
treedc863d5a02e05d6ae95056a484f910999b824cde
parent7a621a43d62a7fb333f38404789151259f09457a (diff)
2001-10-11 Roland McGrath <roland@frob.com>
* dir-renamed.c (diskfs_rename_dir): Fix bogus assert. From Moritz Schulte <moritz@chaosdorf.de>.
-rw-r--r--libdiskfs/dir-renamed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c
index 3d518eb9..c67cc072 100644
--- a/libdiskfs/dir-renamed.c
+++ b/libdiskfs/dir-renamed.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994, 95, 96, 97, 98, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1994,95,96,97,98,99,2001 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -137,12 +137,12 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, const char *fromname,
err = diskfs_lookup (fnp, "..", RENAME | SPEC_DOTDOT,
&tmpnp, tmpds, fromcred);
assert (err != ENOENT);
- assert (tmpnp == fdp);
if (err)
{
diskfs_drop_dirstat (fnp, tmpds);
goto out;
}
+ assert (tmpnp == fdp);
err = diskfs_dirrewrite (fnp, fdp, tdp, "..", tmpds);
if (diskfs_synchronous)