Subject: Re: problems to destroy an user

From: [email-masked] (Paul M. Aoki)
Date: Tue, 10 May 94 16:59:47 -0700

[email-masked] (Peter Fuetterer) writes:
> WARN:May 10 19:51:07:pg_atoi: error in " 120         ": can't parse "        
> destroyuser: database access failed - exiting... 

kai petzke has mentioned that the pg_atoi parsing code can be modified
to be more forgiving trailing spaces.  i'm just afraid of modifying the
behavior of that code since some of the "built in" composite numeric
data types expect certain behavior from atoi and strtol (which was the 
reason for the separate atoi code -- different people's c library atoi 
code behaved in funny ways)

it's easy enough to fix by dinking the script.  this is what i did.

*** 1.8	1994/03/20 03:17:53
--- destroyuser.sh	1994/04/21 19:39:55
***************
*** 1,6 ****
  #!/bin/sh
  #
! # $Header: /usr/local/devel/postgres/src/bin/destroyuser/RCS/destroyuser.sh,v 1.8 1994/03/20 03:17:53 aoki Exp $
  #
  # Note - this should NOT be setuid.
  #
--- 1,6 ----
  #!/bin/sh
  #
! # $Header: /usr/local/devel/postgres/src/bin/destroyuser/RCS/destroyuser.sh,v 1.9 1994/04/21 19:37:34 aoki Exp $
  #
  # Note - this should NOT be setuid.
  #
***************
*** 98,104 ****
      exit 1
  fi
  
! SYSID=$RES
  
  #
  # destroy the databases owned by the deleted user.  First, use this query
--- 98,104 ----
      exit 1
  fi
  
! SYSID=`echo $RES | sed 's/ //g'`
  
  #
  # destroy the databases owned by the deleted user.  First, use this query
--
  Paul M. Aoki  |  CS Div., Dept. of EECS, UCB  |  [email-masked]
                |  Berkeley, CA 94720           |  ...!uunet!ucbvax!aoki

===============================================================================
    To add/remove yourself from the POSTGRES mailing list: send mail with 
    the subject line ADD or DEL to "[email-masked]"

    If this fails, send mail to "[email-masked]" and
    a human will deal with it.  DO NOT post to the "postgres" mailing list.
===============================================================================