projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for UST application registration
[lttng-tools.git]
/
ltt-sessiond
/
utils.c
diff --git
a/ltt-sessiond/utils.c
b/ltt-sessiond/utils.c
index 5b8e31b8d0b4e44623360fa68fa67288ba4a923d..91972e9a80030ab6d331b7f6d207f3532acd0b88 100644
(file)
--- a/
ltt-sessiond/utils.c
+++ b/
ltt-sessiond/utils.c
@@
-1,6
+1,6
@@
/*
* Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
/*
* Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
- *
Copyright (C) 2011 -
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@
-30,10
+30,9
@@
#include "utils.h"
/*
#include "utils.h"
/*
- *
get_home_dir
+ *
Return pointer to home directory path using the env variable HOME.
*
*
- * Return pointer to home directory path using the env variable HOME.
- * No home, NULL is returned.
+ * No home, NULL is returned.
*/
const char *get_home_dir(void)
{
*/
const char *get_home_dir(void)
{
@@
-41,9
+40,7
@@
const char *get_home_dir(void)
}
/*
}
/*
- * mkdir_recursive
- *
- * Create recursively directory using the FULL path.
+ * Create recursively directory using the FULL path.
*/
int mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid)
{
*/
int mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid)
{
@@
-76,9
+73,8
@@
int mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid)
}
} else if (ret == 0) {
/*
}
} else if (ret == 0) {
/*
- * We created the directory. Set its
- * ownership to the user/group
- * specified.
+ * We created the directory. Set its ownership to the
+ * user/group specified.
*/
ret = chown(tmp, uid, gid);
if (ret < 0) {
*/
ret = chown(tmp, uid, gid);
if (ret < 0) {
@@
-96,8
+92,8
@@
int mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid)
ret = -errno;
} else if (ret == 0) {
/*
ret = -errno;
} else if (ret == 0) {
/*
- * We created the directory. Set its ownership to the
- *
user/group
specified.
+ * We created the directory. Set its ownership to the
user/group
+ * specified.
*/
ret = chown(tmp, uid, gid);
if (ret < 0) {
*/
ret = chown(tmp, uid, gid);
if (ret < 0) {
This page took
0.025933 seconds
and
5
git commands to generate.