agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
From: Paul M. Aoki <aoki@postgres.Berkeley.EDU>
To: Peter Fuetterer <peter@pitre.sub.org>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: problems to destroy an user
Date: Tue, 10 May 94 16:59:47 -0700
Message-ID: <199405102359.QAA00701@faerie.CS.Berkeley.EDU> (raw)
In-Reply-To: <9405101813.AA00463@pluto.pitre.sub.org>

peter@pitre.sub.org (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  |  aoki@postgres.Berkeley.EDU
                |  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 "postgres-request@postgres.Berkeley.EDU"

    If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
    a human will deal with it.  DO NOT post to the "postgres" mailing list.
===============================================================================




reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: postgres@postgres.berkeley.edu
  Cc: aoki@postgres.Berkeley.EDU, peter@pitre.sub.org
  Subject: Re: problems to destroy an user
  In-Reply-To: <199405102359.QAA00701@faerie.CS.Berkeley.EDU>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox