1
0
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:
Alasdair Kergon 2002-11-26 12:14:37 +00:00
parent 8c54f03db8
commit 22d2827b41

View File

@ -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;