X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=d7811bd7a6fd566e992c505a1d81770aa1790b18;hp=337713eb78ab39493bb745c994d7d43df9400d0f;hb=df5b86c84d896eb2d74a8757c234492c1d1fc3be;hpb=2898de39cf552fdc0bc42575997b3885eee091a7 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;