Opened 16 years ago

Closed 16 years ago

#131 closed defect (fixed)

using unix sockets for AISC broken

Reported by: epruesse Owned by: westram
Priority: normal Milestone:
Component: no idea Version:
Keywords: Cc:

Description

Since r4672 unix sockets cannot be used anymore for e.g. arb_pt_server:

arb_pt_server -Dmydb.arb -T:/tmp/arb_pt_$USER_$$

Suggested fix: Only prefix 'localhost' to socket string if it not just begins with a ':', but also continues with a number.

Index: SERVERCNTRL/servercntrl.c
===================================================================
--- SERVERCNTRL/servercntrl.c   (revision 5469)
+++ SERVERCNTRL/servercntrl.c   (working copy)
@@ -326,7 +326,8 @@
                 case 'P': erg->pt_server     = strdup(argv[s]+2);break;
                 case 'T': {
                     char *ipport = argv[s]+2;
-                    if (ipport[0] == ':') { /* port only -> assume localhost */
+                    if (ipport[0] == ':' &&
+                        ipport[1] >= '0' && ipport[1] <= '9') { /* port only -> assume localhost */
                         erg->tcp = GBS_global_string_copy("localhost%s", ipport);
                     }
                     else {

Change History (1)

comment:1 Changed 16 years ago by westram

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.