summaryrefslogtreecommitdiff
path: root/src/bin/psql/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r--src/bin/psql/command.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 0daac61e01c..0b7b8d45b8b 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -289,11 +289,6 @@ exec_command(const char *cmd,
success = false;
}
- if (pset.dirname)
- free(pset.dirname);
- pset.dirname = pg_strdup(dir);
- canonicalize_path(pset.dirname);
-
if (opt)
free(opt);
}
@@ -1102,8 +1097,7 @@ exec_command(const char *cmd,
/* This scrolls off the screen when using /dev/tty */
success = saveHistory(fname ? fname : DEVTTY, -1, false, false);
if (success && !pset.quiet && fname)
- printf(gettext("Wrote history to file \"%s/%s\".\n"),
- pset.dirname ? pset.dirname : ".", fname);
+ printf(_("Wrote history to file \"%s\".\n"), fname);
if (!fname)
putchar('\n');
free(fname);