1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-03-04 15:51:29 +02:00

Fail if regular file passed as -E option

This commit is contained in:
Sergey Cherkashin 2019-03-12 13:33:08 +03:00
parent 5af689ea74
commit 6a4b014f8d

View File

@ -478,7 +478,11 @@ dir_list_file(parray *files, const char *root, bool exclude, bool omit_symlink,
if (!S_ISDIR(file->mode))
{
elog(WARNING, "Skip \"%s\": unexpected file format", file->path);
if (external_dir_num)
elog(ERROR, " --external-dirs option \"%s\": directory or symbolic link expected",
file->path);
else
elog(WARNING, "Skip \"%s\": unexpected file format", file->path);
return;
}
if (add_root)