]> granicus.if.org Git - postgresql/commitdiff
Back-patch fix to allow createuser to exit on control-C (Oliver Elphick)
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 May 2003 15:17:02 +0000 (15:17 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 May 2003 15:17:02 +0000 (15:17 +0000)
src/bin/scripts/createuser

index f3983cfcba342475a62f50eda7e9f262629338d4..8b596cc02fd2acf208a9e89d4c02e30a4100e69b 100644 (file)
@@ -9,7 +9,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.29 2002/10/18 22:05:36 petere Exp $
+#    $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.29.2.1 2003/05/16 15:17:02 tgl Exp $
 #
 # Note - this should NOT be setuid.
 #
@@ -179,7 +179,7 @@ fi
 # Don't want to leave the user blind if he breaks
 # during password entry.
 
-trap 'stty echo >/dev/null 2>&1' 1 2 3 15
+trap 'stty echo >/dev/null 2>&1; echo; exit 1' 1 2 3 15
 
 # Get missing user attributes