X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsave.c;h=fe5461cb1e34f30fbd43b9c3b3018e28c6adc783;hb=f9b57ab287f585d3ec0a196af5e05e00fe23f6eb;hp=fd6c5d894e6f9a7ef099ba3a01088bb114bd870b;hpb=95a29ab808f93c74a910b2fc8ee25833bfbc46d7;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/save.c b/src/bin/lttng-sessiond/save.c index fd6c5d894..fe5461cb1 100644 --- a/src/bin/lttng-sessiond/save.c +++ b/src/bin/lttng-sessiond/save.c @@ -1478,7 +1478,8 @@ int save_session(struct ltt_session *session, config_file_path[len] = '\0'; if (!access(config_file_path, F_OK) && !attr->overwrite) { - /* A file with the same name already exists, skip */ + /* File exists, notify the user since the overwrite flag is off. */ + ret = LTTNG_ERR_SAVE_FILE_EXIST; goto end; }