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