mirror of
https://github.com/postgres/postgres.git
synced 2025-11-01 21:31:19 +03:00
Remove -k unix socketpath option from client side, allow hostname with
leading slash to behave as a unix socket path.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/dropuser,v 1.8 2000/11/13 15:18:14 momjian Exp $
|
||||
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/dropuser,v 1.9 2000/11/13 23:37:53 momjian Exp $
|
||||
#
|
||||
# Note - this should NOT be setuid.
|
||||
#
|
||||
@@ -59,15 +59,6 @@ do
|
||||
--port=*)
|
||||
PSQLOPT="$PSQLOPT -p "`echo $1 | sed 's/^--port=//'`
|
||||
;;
|
||||
--unixsocket|-k)
|
||||
PSQLOPT="$PSQLOPT -k $2"
|
||||
shift;;
|
||||
-k*)
|
||||
PSQLOPT="$PSQLOPT $1"
|
||||
;;
|
||||
--unixsocket=*)
|
||||
PSQLOPT="$PSQLOPT -k "`echo $1 | sed 's/^--unixsocket=//'`
|
||||
;;
|
||||
# Note: These two specify the user to connect as (like in psql),
|
||||
# not the user you're dropping.
|
||||
--username|-U)
|
||||
@@ -114,7 +105,6 @@ if [ "$usage" ]; then
|
||||
echo "Options:"
|
||||
echo " -h, --host=HOSTNAME Database server host"
|
||||
echo " -p, --port=PORT Database server port"
|
||||
echo " -k, --unixsocket=PATH Database server Unix-domain socket name"
|
||||
echo " -U, --username=USERNAME Username to connect as (not the one to drop)"
|
||||
echo " -W, --password Prompt for password to connect"
|
||||
echo " -i, --interactive Prompt before deleting anything"
|
||||
|
||||
Reference in New Issue
Block a user