projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove -s option from lttng load command
[lttng-tools.git]
/
src
/
common
/
config
/
config.c
diff --git
a/src/common/config/config.c
b/src/common/config/config.c
index 722904772316c0fc0b48f548817a472e051247a1..0e9e1bdc722661c21fb4172b27ba49a593b742ae 100644
(file)
--- a/
src/common/config/config.c
+++ b/
src/common/config/config.c
@@
-2342,9
+2342,15
@@
int load_session_from_path(const char *path, const char *session_name,
directory = opendir(path);
if (!directory) {
directory = opendir(path);
if (!directory) {
- if (errno != ENOTDIR) {
+ switch (errno) {
+ case ENOTDIR:
ret = -LTTNG_ERR_LOAD_IO_FAIL;
goto end;
ret = -LTTNG_ERR_LOAD_IO_FAIL;
goto end;
+ case ENOENT:
+ ret = -LTTNG_ERR_LOAD_SESSION_NOENT;
+ goto end;
+ default:
+ break;
}
}
if (directory) {
}
}
if (directory) {
This page took
0.024266 seconds
and
4
git commands to generate.