Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d13bed

Browse files
committed
Remove directory from cmd.exe default shell.
1 parentf245c4e commit1d13bed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/bin/psql/command.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.132 2004/11/0605:20:41 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.133 2004/11/0617:56:40 momjian Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"command.h"
@@ -1528,7 +1528,11 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet)
15281528
#ifndefWIN32
15291529
#defineDEFAULT_SHELL "/bin/sh"
15301530
#else
1531-
#defineDEFAULT_SHELL "c:/windows/system32/cmd.exe"
1531+
/*
1532+
*CMD.EXE is in different places in different Win32 releases so we
1533+
*have to rely on the path to find it.
1534+
*/
1535+
#defineDEFAULT_SHELL "cmd.exe"
15321536
#endif
15331537

15341538
staticbool

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp