diff --git a/file.c b/file.c index ea0dae25..0a5417ba 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;