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

+2-2
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)