projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't report an error when the last section of the path exist in mkdir_recursive
[lttng-tools.git]
/
ltt-sessiond
/
main.c
diff --git
a/ltt-sessiond/main.c
b/ltt-sessiond/main.c
index 7532e2c3bdde96e18c6d82772bf2b9ae3fbb146c..c72087ef25ddb88d27634e5d97d1967d1bec0277 100644
(file)
--- a/
ltt-sessiond/main.c
+++ b/
ltt-sessiond/main.c
@@
-1432,12
+1432,13
@@
static int mount_debugfs(char *path)
ret = mkdir_recursive(path, S_IRWXU | S_IRWXG, geteuid(), getegid());
if (ret < 0) {
ret = mkdir_recursive(path, S_IRWXU | S_IRWXG, geteuid(), getegid());
if (ret < 0) {
+ PERROR("Cannot create debugfs path");
goto error;
}
ret = mount(type, path, type, 0, NULL);
if (ret < 0) {
goto error;
}
ret = mount(type, path, type, 0, NULL);
if (ret < 0) {
-
perror("
mount debugfs");
+
PERROR("Cannot
mount debugfs");
goto error;
}
goto error;
}
@@
-1487,6
+1488,7
@@
static void init_kernel_tracer(void)
}
ret = mount_debugfs(debugfs_path);
if (ret < 0) {
}
ret = mount_debugfs(debugfs_path);
if (ret < 0) {
+ perror("Cannot mount debugfs");
goto error;
}
}
goto error;
}
}
This page took
0.025576 seconds
and
5
git commands to generate.