summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-04-01 09:58:26 +0000
committerRoland McGrath <roland@redhat.com>1992-04-01 09:58:26 +0000
commitd8742e9b3e6b736f0ca27fda0362263f4cb1bd97 (patch)
treedbac4c8351b21a5c043cac65e2ba94f95dfbe8fa /file.c
parenta7ec3f0576b97d4d93a7487fb1c43be2768f3280 (diff)
downloadgunmake-d8742e9b3e6b736f0ca27fda0362263f4cb1bd97.tar.gz
Formerly file.c.~10~
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;