projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extras: Perl 5.26 requires { to be escaped by \
[lttng-tools.git]
/
src
/
common
/
utils.c
diff --git
a/src/common/utils.c
b/src/common/utils.c
index 2a20e5a8c4ab4cca1557ca917cfa2de02defd905..bd61fff3d52ad8c6c16d68b0ca9e195009225018 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-679,8
+679,8
@@
int utils_mkdir(const char *path, mode_t mode, int uid, int gid)
int ret;
struct lttng_directory_handle *handle;
const struct lttng_credentials creds = {
int ret;
struct lttng_directory_handle *handle;
const struct lttng_credentials creds = {
- .uid =
(uid_t) uid
,
- .gid =
(gid_t) gid
,
+ .uid =
LTTNG_OPTIONAL_INIT_VALUE(uid)
,
+ .gid =
LTTNG_OPTIONAL_INIT_VALUE(gid)
,
};
handle = lttng_directory_handle_create(NULL);
};
handle = lttng_directory_handle_create(NULL);
@@
-708,8
+708,8
@@
int utils_mkdir_recursive(const char *path, mode_t mode, int uid, int gid)
int ret;
struct lttng_directory_handle *handle;
const struct lttng_credentials creds = {
int ret;
struct lttng_directory_handle *handle;
const struct lttng_credentials creds = {
- .uid =
(uid_t) uid
,
- .gid =
(gid_t) gid
,
+ .uid =
LTTNG_OPTIONAL_INIT_VALUE(uid)
,
+ .gid =
LTTNG_OPTIONAL_INIT_VALUE(gid)
,
};
handle = lttng_directory_handle_create(NULL);
};
handle = lttng_directory_handle_create(NULL);
This page took
0.023528 seconds
and
4
git commands to generate.