[Linux-ha-dev] Re: pgsql and quotes

Serge Dubrouski sergeyfd at gmail.com
Mon Dec 10 12:33:57 MST 2007


The meaning is that I want to take all $OCF_RESKEY_start_opt and there
can be several of them with spaces and pass all of them as one to
postgres.

On Dec 10, 2007 11:58 AM, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
> Hi,
>
> On Mon, Dec 10, 2007 at 09:07:26AM -0700, Serge Dubrouski wrote:
> > It will not. Why do you want to make this change?
>
> No, I don't want to change, but was just wondering if it were
> right. It sure confused the vim's syntax highlighting.
>
> Thanks,
>
> Dejan
>
>
> > I'll create a patch for moving that check for root down the code today.
> >
> > On Dec 10, 2007 7:26 AM, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
> > > Hi Serge,
> > >
> > > Is this thing going to work:
> > >
> > > 197     if runasowner "$OCF_RESKEY_pgctl $OCF_RESKEY_ctl_opt -D $OCF_RESKEY_pgdata -l $OCF_RESKEY_logfile -o "\'$OCF_RESKEY_start_opt\'" start > /dev/null 2 >&1"
> > >
> > > Should it be:
> > >
> > > 197     if runasowner "$OCF_RESKEY_pgctl $OCF_RESKEY_ctl_opt -D $OCF_RESKEY_pgdata -l $OCF_RESKEY_logfile -o \"\'$OCF_RESKEY_start_opt\'\" start > /dev/null 2 >&1"
> > >
> > > Also, the test for root is too early, i.e. at least one should be
> > > able to run meta-data as any user.
> > >
> > > Thanks,
> > >
> > > Dejan
> > >
> >
> >
> >
> > --
> > Serge Dubrouski.
> > _______________________________________________________
> > Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> > Home Page: http://linux-ha.org/
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
>



-- 
Serge Dubrouski.


More information about the Linux-HA-Dev mailing list