diff options
Diffstat (limited to 'src/shared/install.c')
-rw-r--r-- | src/shared/install.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shared/install.c b/src/shared/install.c index 1a69337f5a..0d38bccd72 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -524,8 +524,11 @@ static int find_symlinks( assert(same_name_link); fd = open(config_path, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW); - if (fd < 0) + if (fd < 0) { + if (errno == ENOENT) + return 0; return -errno; + } /* This takes possession of fd and closes it */ return find_symlinks_fd(name, fd, config_path, config_path, same_name_link); |