|
9 | 9 | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
10 | 10 | * Portions Copyright (c) 1994, Regents of the University of California
|
11 | 11 | *
|
12 |
| - * $Id: pqcomm.h,v 1.46 2000/11/2201:41:14 momjian Exp $ |
| 12 | + * $Id: pqcomm.h,v 1.47 2000/11/2202:38:25 momjian Exp $ |
13 | 13 | *
|
14 | 14 | *-------------------------------------------------------------------------
|
15 | 15 | */
|
@@ -59,7 +59,7 @@ typedef union SockAddr
|
59 | 59 | #endif
|
60 | 60 |
|
61 | 61 | #defineUNIXSOCK_PATH(sun,port,defpath) \
|
62 |
| - (snprintf((sun).sun_path, UNIXSOCK_LEN(sun), "%s/.s.PGSQL.%d", (defpath && *(defpath) != '\0') ? (defpath) : "/tmp", (port))) |
| 62 | + (snprintf((sun).sun_path, UNIXSOCK_LEN(sun), "/tmp/.s.PGSQL.%d", (port))) |
63 | 63 |
|
64 | 64 | /*
|
65 | 65 | *We do this because sun_len is in BSD's struct, while others don't.
|
|