Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8bd2248

Browse files
author
Artur Zakirov
committed
Do not skip subdirectories if parent directory contains a file
1 parent 3068156 commit 8bd2248

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

dir.c

+1-7
Original file line numberDiff line numberDiff line change
@@ -515,13 +515,7 @@ list_data_directories(parray *files, const char *path, bool is_root,
515515
elog(ERROR, "cannot stat file \"%s\": %s", child, strerror(errno));
516516

517517
if (!S_ISDIR(st.st_mode))
518-
{
519-
/* Stop reading the directory if we met file */
520-
if (!is_root)
521-
break;
522-
else
523-
continue;
524-
}
518+
continue;
525519

526520
/* Check for exclude for the first level of listing */
527521
if (is_root && exclude)

show.c

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ do_show(time_t backup_id)
2929
if (backup_id != 0)
3030
{
3131
pgBackup *backup;
32-
pid_t run_pid;
3332

3433
backup = read_backup(backup_id);
3534
if (backup == NULL)

0 commit comments

Comments
 (0)