Skip to content

Commit 1d13bed

Browse files
committed
Remove directory from cmd.exe default shell.
1 parent f245c4e commit 1d13bed

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/06 05:20:41 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.133 2004/11/06 17: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
#ifndef WIN32
15291529
#define DEFAULT_SHELL "/bin/sh"
15301530
#else
1531-
#define DEFAULT_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+
#define DEFAULT_SHELL "cmd.exe"
15321536
#endif
15331537

15341538
static bool

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy