git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e69785d)
Do not shell-quote the name of the editor, so that the editor can be a
2003年1月10日 21:57:44 +0000 (21:57 +0000)
2003年1月10日 21:57:44 +0000 (21:57 +0000)
command with arguments.


diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 419e44a63265418fd1be57a5d776775744709de6..08beb9fda88f43f748aa884b173febe03545c945 100644 (file)
--- 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);
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /