X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=d7811bd7a6fd566e992c505a1d81770aa1790b18;hb=60d21fa25f38b47b5867377035b68830105afcf9;hp=337713eb78ab39493bb745c994d7d43df9400d0f;hpb=7591bab11eceedc6a0d1e02fd6f85592267a63b5;p=lttng-tools.git diff --git a/src/common/utils.c b/src/common/utils.c index 337713eb7..d7811bd7a 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -763,10 +763,6 @@ int utils_unlink_stream_file(const char *path_name, char *file_name, uint64_t si ret = unlink(path); } else { ret = run_as_unlink(path, uid, gid); - if (ret < 0) { - errno = -ret; - ret = -1; - } } if (ret < 0) { goto error;