Fossil

Check-in [4e586a2d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix Windows build.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | symlinks
Files: files | file ages | folders
SHA1: 4e586a2d8e690d14e33205472b9749620d1ab705
User & Date: dmitry 2011-09-08 12:59:10
Context
2011-09-08
13:02
Merge fixes and refactoring from symlinks branch. check-in: c05f6afa user: dmitry tags: trunk
12:59
Fix Windows build. Closed-Leaf check-in: 4e586a2d user: dmitry tags: symlinks
11:59
Introduce new file_wd_* functions that use stat() or lstat() depending on 'allow-symlinks' setting, and use them when dealing with files inside the working directory. Make file_* functions always use stat() as before merging symlink support.

Fix renaming of symlinks when merging (via new function symlink_copy()).

Rename create_symlink() to symlink_create(). check-in: 8a0c5469 user: dmitry tags: symlinks

Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/file.c.

61
62
63
64
65
66
67

68
69
70
71
72
73
74
    return stat(zFilename, buf);
  }
#else
  int rc = 0;
  char *zMbcs = fossil_utf8_to_mbcs(zFilename);
  rc = stat(zMbcs, buf);
  fossil_mbcs_free(zMbcs);

#endif
}

/*
** Fill in the fileStat variable for the file named zFilename.
** If zFilename==0, then use the previous value of fileStat if
** there is a previous value.







>







61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
    return stat(zFilename, buf);
  }
#else
  int rc = 0;
  char *zMbcs = fossil_utf8_to_mbcs(zFilename);
  rc = stat(zMbcs, buf);
  fossil_mbcs_free(zMbcs);
  return rc;
#endif
}

/*
** Fill in the fileStat variable for the file named zFilename.
** If zFilename==0, then use the previous value of fileStat if
** there is a previous value.