projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: streamline ret/errno of run_as()
[lttng-tools.git]
/
src
/
common
/
utils.c
diff --git
a/src/common/utils.c
b/src/common/utils.c
index 3e0058067fcd2b73bc42fe767c0e022b96b03b39..7a09259ebc6b8de4657f804146bb795c35ac023e 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-754,10
+754,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;
This page took
0.026272 seconds
and
4
git commands to generate.