Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cfab4f6

Browse files
committed
Use SEP_CHAR consistently in forming XLOG pathnames.
1 parent 7ebbf20 commit cfab4f6

File tree

1 file changed

+4
-3
lines changed
  • src/backend/access/transam

1 file changed

+4
-3
lines changed

src/backend/access/transam/xlog.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.57 2001/03/13 20:32:37 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.58 2001/03/14 20:23:04 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1778,8 +1778,9 @@ void
17781778
XLOGPathInit(void)
17791779
{
17801780
/* Init XLOG file paths */
1781-
snprintf(XLogDir, MAXPGPATH, "%s/pg_xlog", DataDir);
1782-
snprintf(ControlFilePath, MAXPGPATH, "%s/global/pg_control", DataDir);
1781+
snprintf(XLogDir, MAXPGPATH, "%s%cpg_xlog", DataDir, SEP_CHAR);
1782+
snprintf(ControlFilePath, MAXPGPATH, "%s%cglobal%cpg_control",
1783+
DataDir, SEP_CHAR, SEP_CHAR);
17831784
}
17841785

17851786
static void

0 commit comments

Comments
 (0)