mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Re-run pgindent, fixing a problem where comment lines after a blank
comment line where output as too long, and update typedefs for /lib directory. Also fix case where identifiers were used as variable names in the backend, but as typedefs in ecpg (favor the backend for indenting). Backpatch to 8.1.X.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/port/exec.c,v 1.39 2005/10/15 02:49:51 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/port/exec.c,v 1.40 2005/11/22 18:17:34 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -95,8 +95,8 @@ validate_exec(const char *path)
|
||||
/*
|
||||
* Ensure that the file exists and is a regular file.
|
||||
*
|
||||
* XXX if you have a broken system where stat() looks at the symlink instead
|
||||
* of the underlying file, you lose.
|
||||
* XXX if you have a broken system where stat() looks at the symlink
|
||||
* instead of the underlying file, you lose.
|
||||
*/
|
||||
if (stat(path, &buf) < 0)
|
||||
return -1;
|
||||
@@ -297,9 +297,9 @@ resolve_symlinks(char *path)
|
||||
* points, for example). After following the final symlink, we use
|
||||
* getcwd() to figure out where the heck we're at.
|
||||
*
|
||||
* One might think we could skip all this if path doesn't point to a symlink
|
||||
* to start with, but that's wrong. We also want to get rid of any
|
||||
* directory symlinks that are present in the given path. We expect
|
||||
* One might think we could skip all this if path doesn't point to a
|
||||
* symlink to start with, but that's wrong. We also want to get rid of
|
||||
* any directory symlinks that are present in the given path. We expect
|
||||
* getcwd() to give us an accurate, symlink-free path.
|
||||
*/
|
||||
if (!getcwd(orig_wd, MAXPGPATH))
|
||||
|
Reference in New Issue
Block a user