diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2003-01-10 21:57:44 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2003-01-10 21:57:44 +0000 |
commit | b7ca9bdf187887e8e4636ecf117ffc7837f15dbe (patch) | |
tree | 1bc80496a37eafb140dcfc99ca6ea1da6a4a4490 | |
parent | e69785debfcca308a5999946bbf4cfefd0ab5e3c (diff) | |
download | postgresql-b7ca9bdf187887e8e4636ecf117ffc7837f15dbe.tar.gz postgresql-b7ca9bdf187887e8e4636ecf117ffc7837f15dbe.zip |
Do not shell-quote the name of the editor, so that the editor can be a
command with arguments.
-rw-r--r-- | src/bin/psql/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 419e44a6326..08beb9fda88 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright 2000-2002 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.87 2003/01/07 20:56:06 tgl Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.88 2003/01/10 21:57:44 petere Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -1527,7 +1527,7 @@ editFile(const char *fname) sys = malloc(strlen(editorName) + strlen(fname) + 10 + 1); if (!sys) return false; - sprintf(sys, "exec '%s' '%s'", editorName, fname); + sprintf(sys, "exec %s '%s'", editorName, fname); result = system(sys); if (result == -1) psql_error("could not start editor %s\n", editorName); |