projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Accept uid and gid parameters in utils_mkdir()/utils_mkdir_recursive()
[lttng-tools.git]
/
src
/
common
/
runas.c
diff --git
a/src/common/runas.c
b/src/common/runas.c
index 9d9091638a5a9910c8cec2b6810357ca087e4499..36be188fafb54036688930689d1d23781cbe000d 100644
(file)
--- a/
src/common/runas.c
+++ b/
src/common/runas.c
@@
-101,6
+101,9
@@
int use_clone(void)
}
#endif
}
#endif
+LTTNG_HIDDEN
+int _utils_mkdir_recursive_unsafe(const char *path, mode_t mode);
+
/*
* Create recursively directory using the FULL path.
*/
/*
* Create recursively directory using the FULL path.
*/
@@
-114,7
+117,8
@@
int _mkdir_recursive(void *_data)
path = data->path;
mode = data->mode;
path = data->path;
mode = data->mode;
- return utils_mkdir_recursive(path, mode);
+ /* Safe to call as we have transitioned to the requested uid/gid. */
+ return _utils_mkdir_recursive_unsafe(path, mode);
}
static
}
static
This page took
0.024542 seconds
and
4
git commands to generate.