Skip to content

Commit 05fd963

Browse files
committed
Fix compilation under win32
1 parent 098ff1f commit 05fd963

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/pg_dump/pg_backup_db.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,12 +1205,12 @@ copy_file(const char *srcfile, const char *dstfile, bool create_file)
12051205
* If we're asked to create_file, it should not exist. Otherwise, we
12061206
* want to rewrite it.
12071207
*/
1208-
if (CopyFile(src, dst, create_file) == 0)
1208+
if (CopyFile(srcfile, dstfile, create_file) == 0)
12091209
{
12101210
_dosmaperr(GetLastError());
1211-
pg_fatal("error while copying relation \"%s.%s\" (\"%s\" to \"%s\"): %s\n",
1212-
schemaName, relName, src, dst, strerror(errno));
1211+
return -1;
12131212
}
1213+
return 0;
12141214

12151215
#endif /* WIN32 */
12161216
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy