Commit a31dc392 authored by Bruce Momjian's avatar Bruce Momjian

Fix pg_update to properly test for the data directory's existence on

Win32.

Backpatch to 9.1.
parent b4fbe392
......@@ -168,7 +168,9 @@ check_data_dir(const char *pg_data)
{
struct stat statBuf;
snprintf(subDirName, sizeof(subDirName), "%s/%s", pg_data,
snprintf(subDirName, sizeof(subDirName), "%s%s%s", pg_data,
/* Win32 can't stat() a directory with a trailing slash. */
*requiredSubdirs[subdirnum] ? "/" : "",
requiredSubdirs[subdirnum]);
if (stat(subDirName, &statBuf) != 0)
......
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