[OpenSER-Devel] [ openser-Bugs-1872407 ] openserctl add user1 pass1 user at host.com fails with postgres

SourceForge.net noreply at sourceforge.net
Tue Jan 15 22:11:05 UTC 2008


Bugs item #1872407, was opened at 2008-01-15 14:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1872407&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tools
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: openserctl add user1 pass1 user at host.com fails with postgres

Initial Comment:
in check_db_alias(), the result of no found aliases doesn't return "0".


    if [ "$CNT" = "0" ] ; then
        ALIAS_DB_EXISTS=0
    else
        ALIAS_DB_EXISTS=1
    fi

Thise piece of code make it think it exists when it doesn't...

The problem comes from the formating of the postgres result which is:

count ------- 0 (1 row)

Adding "| /usr/bin/tail -n 1" returns nothing.






----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1872407&group_id=139143



More information about the Devel mailing list