Skip to content

Commit a5d7eb9

Browse files
committed
From: Keith Parks <emkxp01@mtcc.demon.co.uk>
Subject: [PATCHES] Three small patches. Hi, Here are 3 small patches to the postgreSQL source sup'd on the 6th May 1997. The 1st 2 fix the shell backslash "c" handling used to suppress the newline on some unix shells. (The \c needs to be inside quote.) The 3rd may or may not be the correct way to fix the missing define of INDEX_MAX_KEYS in pg_dump.h
1 parent 505a470 commit a5d7eb9

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/bin/createuser/createuser.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/bin/createuser/Attic/createuser.sh,v 1.7 1996/11/17 03:54:54 bryanh Exp $
11+
# $Header: /cvsroot/pgsql/src/bin/createuser/Attic/createuser.sh,v 1.8 1997/05/07 02:59:46 scrappy Exp $
1212
#
1313
# Note - this should NOT be setuid.
1414
#
@@ -96,7 +96,7 @@ fi
9696

9797
if [ -z "$NEWUSER" ]
9898
then
99-
echo _fUnKy_DASH_N_sTuFf_ "Enter name of user to add ---> "_fUnKy_BACKSLASH_C_sTuFf_
99+
echo _fUnKy_DASH_N_sTuFf_ "Enter name of user to add ---> _fUnKy_BACKSLASH_C_sTuFf_"
100100
read NEWUSER
101101
fi
102102

@@ -134,7 +134,7 @@ do
134134
fi
135135
while [ -z "$SYSID" ]
136136
do
137-
echo _fUnKy_DASH_N_sTuFf_ "Enter user's postgres ID$DEFMSG -> "_fUnKy_BACKSLASH_C_sTuFf_
137+
echo _fUnKy_DASH_N_sTuFf_ "Enter user's postgres ID$DEFMSG -> _fUnKy_BACKSLASH_C_sTuFf_"
138138
read SYSID
139139
[ -z "$SYSID" ] && SYSID=$DEFSYSID;
140140
SYSIDISNUM=`echo $SYSID | egrep '^[0-9]+$'`
@@ -173,7 +173,7 @@ yn=f
173173

174174
while [ "$yn" != y -a "$yn" != n ]
175175
do
176-
echo _fUnKy_DASH_N_sTuFf_ "Is user \"$NEWUSER\" allowed to create databases (y/n) "_fUnKy_BACKSLASH_C_sTuFf_
176+
echo _fUnKy_DASH_N_sTuFf_ "Is user \"$NEWUSER\" allowed to create databases (y/n) _fUnKy_BACKSLASH_C_sTuFf_"
177177
read yn
178178
done
179179

@@ -192,7 +192,7 @@ yn=f
192192

193193
while [ "$yn" != y -a "$yn" != n ]
194194
do
195-
echo _fUnKy_DASH_N_sTuFf_ "Is user \"$NEWUSER\" allowed to add users? (y/n) "_fUnKy_BACKSLASH_C_sTuFf_
195+
echo _fUnKy_DASH_N_sTuFf_ "Is user \"$NEWUSER\" allowed to add users? (y/n) _fUnKy_BACKSLASH_C_sTuFf_"
196196
read yn
197197
done
198198

src/bin/destroyuser/destroyuser.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/bin/destroyuser/Attic/destroyuser.sh,v 1.6 1996/11/17 03:55:07 bryanh Exp $
11+
# $Header: /cvsroot/pgsql/src/bin/destroyuser/Attic/destroyuser.sh,v 1.7 1997/05/07 02:59:52 scrappy Exp $
1212
#
1313
# Note - this should NOT be setuid.
1414
#
@@ -90,7 +90,7 @@ fi
9090

9191
if [ -z "$DELUSER" ]
9292
then
93-
echo _fUnKy_DASH_N_sTuFf_ "Enter name of user to delete ---> "_fUnKy_BACKSLASH_C_sTuFf_
93+
echo _fUnKy_DASH_N_sTuFf_ "Enter name of user to delete ---> _fUnKy_BACKSLASH_C_sTuFf_"
9494
read DELUSER
9595
fi
9696

@@ -154,7 +154,7 @@ then
154154
yn=f
155155
while [ $yn != y -a $yn != n ]
156156
do
157-
echo _fUnKy_DASH_N_sTuFf_ "Deleting user $DELUSER will destroy them. Continue (y/n)? "_fUnKy_BACKSLASH_C_sTuFf_
157+
echo _fUnKy_DASH_N_sTuFf_ "Deleting user $DELUSER will destroy them. Continue (y/n)? _fUnKy_BACKSLASH_C_sTuFf_"
158158
read yn
159159
done
160160

src/bin/pg_dump/pg_dump.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Id: pg_dump.h,v 1.13 1997/05/06 05:20:21 vadim Exp $
8+
* $Id: pg_dump.h,v 1.14 1997/05/07 02:59:59 scrappy Exp $
99
*
1010
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
1111
*
@@ -15,6 +15,7 @@
1515
*-------------------------------------------------------------------------
1616
*/
1717

18+
#include <catalog/pg_index.h>
1819

1920
/* The *Info data structures run-time C structures used to store
2021
system catalog information */

0 commit comments

Comments
 (0)