diff --git a/contrib/pg_upgrade/option.c b/contrib/pg_upgrade/option.c index ac73ec11a53..bb594dd2f69 100644 --- a/contrib/pg_upgrade/option.c +++ b/contrib/pg_upgrade/option.c @@ -241,7 +241,7 @@ parseCommandLine(int argc, char *argv[]) strlcpy(new_cluster_pgdata, new_cluster.pgdata, MAXPGPATH); canonicalize_path(new_cluster_pgdata); - + if (!getcwd(cwd, MAXPGPATH)) pg_fatal("cannot find current directory\n"); canonicalize_path(cwd);