X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Fconfig%2Fconfig.c;h=e61791b7d03b01eafad109b66f319421bb1f7e16;hb=ebfa5166759c3b125a9d342e3fe1a227ba0fccf7;hp=0e9e1bdc722661c21fb4172b27ba49a593b742ae;hpb=1114378362fe014288ccaab1d1fed52f7b5703f8;p=lttng-tools.git diff --git a/src/common/config/config.c b/src/common/config/config.c index 0e9e1bdc7..e61791b7d 100644 --- a/src/common/config/config.c +++ b/src/common/config/config.c @@ -2344,13 +2344,14 @@ int load_session_from_path(const char *path, const char *session_name, if (!directory) { switch (errno) { case ENOTDIR: - ret = -LTTNG_ERR_LOAD_IO_FAIL; - goto end; + /* Try the file loading. */ + break; case ENOENT: ret = -LTTNG_ERR_LOAD_SESSION_NOENT; goto end; default: - break; + ret = -LTTNG_ERR_LOAD_IO_FAIL; + goto end; } } if (directory) {