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

Lines changed: 1 addition & 7 deletions
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

Lines changed: 0 additions & 1 deletion
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)
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