summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/file.c b/file.c
index ea0dae2..0a5417b 100644
--- a/file.c
+++ b/file.c
@@ -134,6 +134,9 @@ rename_file (file, name)
register struct file *f;
struct file *oldfile;
+ while (file->renamed != 0)
+ file = file->renamed;
+
/* Find the hash values of the old and new names. */
oldhash = 0;