mirror of
https://github.com/postgres/postgres.git
synced 2025-06-06 00:02:36 -04:00
Add blank line to new canonicalize_path file, which handles "a b\" properly.
This commit is contained in:
parent
5ee0a8dcb6
commit
15c8fd70e8
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/port/path.c,v 1.24 2004/07/12 19:15:14 momjian Exp $
|
* $PostgreSQL: pgsql/src/port/path.c,v 1.25 2004/07/12 19:27:31 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -106,6 +106,7 @@ canonicalize_path(char *path)
|
|||||||
if (*p == '\\')
|
if (*p == '\\')
|
||||||
*p = '/';
|
*p = '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* In Win32, if you do:
|
/* In Win32, if you do:
|
||||||
* prog.exe "a b" "\c\d\"
|
* prog.exe "a b" "\c\d\"
|
||||||
* the system will pass \c\d" as argv[2].
|
* the system will pass \c\d" as argv[2].
|
||||||
|
Loading…
x
Reference in New Issue
Block a user