mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Skip config file reload attempt if no config file location.
This commit is contained in:
parent
8c54f03db8
commit
22d2827b41
@ -245,6 +245,9 @@ int reload_config_file(struct config_tree **cf)
|
||||
struct stat info;
|
||||
int r, fd;
|
||||
|
||||
if (!c->filename)
|
||||
return 0;
|
||||
|
||||
if (stat(c->filename, &info) == -1) {
|
||||
if (errno == ENOENT)
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user