Lines Matching defs:oldfile
3744 win32_symlink(const char *oldfile, const char *newfile)
3747 size_t oldfile_len = strlen(oldfile);
3767 /* oldfile might be relative and we don't want to change that,
3772 if (strchr(oldfile, '/')) {
3776 char *temp = savepv(oldfile);
3786 oldfile = temp;
3799 Otherwise if the oldfile is relative we need to make a relative path
3802 if ((oldfile_len >= 1 && isSLASH(oldfile[oldfile_len-1])) ||
3803 strEQ(oldfile, "..") ||
3804 strEQ(oldfile, ".") ||
3805 (isSLASH(oldfile[oldfile_len-2]) && oldfile[oldfile_len-1] == '.') ||
3806 strEQ(oldfile+oldfile_len-3, "\\..") ||
3807 (oldfile_len == 2 && oldfile[1] == ':')) {
3812 const char *dest_path = oldfile;
3815 if (oldfile_len >= 3 && oldfile[1] == ':') {
3817 /* dest_path = oldfile; already done */
3819 else if (oldfile[0] != '\\') {
3834 strcpy(szTargetName + (end_dir - newfile + 1), oldfile);
3839 /* dest_path = oldfile; */
3849 if (!pCreateSymbolicLinkA(newfile, oldfile, create_flags)) {