Commit 06f5fd2f authored by Tom Lane's avatar Tom Lane

pgwin32_is_junction's argument should be "const char *" not "char *".

We're passing const strings to it in places, and that's not an
unreasonable thing to do.  Per buildfarm (noted on frogmouth
in particular).
parent d49cc588
...@@ -251,7 +251,7 @@ extern int pgunlink(const char *path); ...@@ -251,7 +251,7 @@ extern int pgunlink(const char *path);
#if defined(WIN32) && !defined(__CYGWIN__) #if defined(WIN32) && !defined(__CYGWIN__)
extern int pgsymlink(const char *oldpath, const char *newpath); extern int pgsymlink(const char *oldpath, const char *newpath);
extern int pgreadlink(const char *path, char *buf, size_t size); extern int pgreadlink(const char *path, char *buf, size_t size);
extern bool pgwin32_is_junction(char *path); extern bool pgwin32_is_junction(const char *path);
#define symlink(oldpath, newpath) pgsymlink(oldpath, newpath) #define symlink(oldpath, newpath) pgsymlink(oldpath, newpath)
#define readlink(path, buf, size) pgreadlink(path, buf, size) #define readlink(path, buf, size) pgreadlink(path, buf, size)
......
...@@ -338,10 +338,10 @@ pgreadlink(const char *path, char *buf, size_t size) ...@@ -338,10 +338,10 @@ pgreadlink(const char *path, char *buf, size_t size)
/* /*
* Assumes the file exists, so will return false if it doesn't * Assumes the file exists, so will return false if it doesn't
* (since a nonexistant file is not a junction) * (since a nonexistent file is not a junction)
*/ */
bool bool
pgwin32_is_junction(char *path) pgwin32_is_junction(const char *path)
{ {
DWORD attr = GetFileAttributes(path); DWORD attr = GetFileAttributes(path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment