mirror of
https://github.com/postgres/postgres.git
synced 2025-12-06 00:02:13 +03:00
pgindent run for 9.5
This commit is contained in:
@@ -2517,14 +2517,14 @@ walkdir(char *path, void (*action) (char *fname, bool isdir))
|
||||
int len;
|
||||
struct stat lst;
|
||||
|
||||
len = readlink(subpath, linkpath, sizeof(linkpath)-1);
|
||||
len = readlink(subpath, linkpath, sizeof(linkpath) - 1);
|
||||
if (len < 0)
|
||||
ereport(ERROR,
|
||||
(errcode_for_file_access(),
|
||||
errmsg("could not read symbolic link \"%s\": %m",
|
||||
subpath)));
|
||||
|
||||
if (len >= sizeof(linkpath)-1)
|
||||
if (len >= sizeof(linkpath) - 1)
|
||||
ereport(ERROR,
|
||||
(errmsg("symbolic link \"%s\" target is too long",
|
||||
subpath)));
|
||||
|
||||
Reference in New Issue
Block a user