|
6 | 6 | * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
7 | 7 | *
|
8 | 8 | * IDENTIFICATION
|
9 |
| - * $PostgreSQL: pgsql/src/backend/port/win32_shmem.c,v 1.5 2008/07/04 10:50:18 mha Exp $ |
| 9 | + * $PostgreSQL: pgsql/src/backend/port/win32_shmem.c,v 1.6 2008/10/30 17:04:09 mha Exp $ |
10 | 10 | *
|
11 | 11 | *-------------------------------------------------------------------------
|
12 | 12 | */
|
@@ -57,7 +57,13 @@ GetSharedMemName(void)
|
57 | 57 | elog(FATAL,"could not generate full pathname for datadir %s: %lu",
|
58 | 58 | DataDir,GetLastError());
|
59 | 59 |
|
60 |
| -for (cp=retptr+18;*cp;cp++) |
| 60 | +/* |
| 61 | + * XXX: Intentionally overwriting the Global\ part here. This was not the |
| 62 | + * original approach, but putting it in the actual Global\ namespace |
| 63 | + * causes permission errors in a lot of cases, so we leave it in |
| 64 | + * the default namespace for now. |
| 65 | + */ |
| 66 | +for (cp=retptr;*cp;cp++) |
61 | 67 | if (*cp=='\\')
|
62 | 68 | *cp='/';
|
63 | 69 |
|
|