diff options
Diffstat (limited to 'src/bin/pg_dump/pg_backup_directory.c')
-rw-r--r-- | src/bin/pg_dump/pg_backup_directory.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/bin/pg_dump/pg_backup_directory.c b/src/bin/pg_dump/pg_backup_directory.c index 9c6d7c1b6de..df95411cfd9 100644 --- a/src/bin/pg_dump/pg_backup_directory.c +++ b/src/bin/pg_dump/pg_backup_directory.c @@ -35,6 +35,7 @@ #include "compress_io.h" #include "dumpmem.h" +#include "dumputils.h" #include <dirent.h> #include <sys/stat.h> @@ -633,13 +634,13 @@ createDirectory(const char *dir) if (stat(dir, &st) == 0) { if (S_ISDIR(st.st_mode)) - die_horribly(NULL, modulename, - "cannot create directory %s, it exists already\n", - dir); + exit_horribly(modulename, + "cannot create directory %s, it exists already\n", + dir); else - die_horribly(NULL, modulename, - "cannot create directory %s, a file with this name " - "exists already\n", dir); + exit_horribly(modulename, + "cannot create directory %s, a file with this name " + "exists already\n", dir); } /* @@ -648,8 +649,8 @@ createDirectory(const char *dir) * between our two calls. */ if (mkdir(dir, 0700) < 0) - die_horribly(NULL, modulename, "could not create directory %s: %s", - dir, strerror(errno)); + exit_horribly(modulename, "could not create directory %s: %s", + dir, strerror(errno)); } |