Skip to content

Commit 46c7dba

Browse files
committed
[Issue #246] correctly exclude nested directories such as 'pgsql_tmp'
1 parent 28dfccd commit 46c7dba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dir.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,8 @@ dir_check_file(pgFile *file, bool backup_logs)
613613
*/
614614
for (i = 0; pgdata_exclude_dir[i]; i++)
615615
{
616-
/* relative path exclude */
617-
if (strcmp(file->rel_path, pgdata_exclude_dir[i]) == 0)
616+
/* exclude by dirname */
617+
if (strcmp(file->name, pgdata_exclude_dir[i]) == 0)
618618
{
619619
elog(VERBOSE, "Excluding directory content: %s", file->rel_path);
620620
return CHECK_EXCLUDE_FALSE;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy