link.c: rename local files