Be more verbose

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-05-09 15:27:57 +00:00
parent 0cce48e9fd
commit 5c532b2e56
4 changed files with 34 additions and 11 deletions

View File

@@ -153,8 +153,8 @@ ctl_connect(const char *dir, const char *file)
continue;
if (file) {
file = NULL;
break;
closedir(dp);
return -3;
}
file = &d->d_name[0];
@@ -162,8 +162,7 @@ ctl_connect(const char *dir, const char *file)
if (!file) {
closedir(dp);
errno = ENOENT;
return -1;
return -2;
}
}