X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Futils.c;h=91972e9a80030ab6d331b7f6d207f3532acd0b88;hp=5b8e31b8d0b4e44623360fa68fa67288ba4a923d;hb=56c868797e71638aa5449ead20f5bb8763f2e005;hpb=996b65c843a7ef76769e4f6cf66055c7c4acf3d0 diff --git a/ltt-sessiond/utils.c b/ltt-sessiond/utils.c index 5b8e31b8d..91972e9a8 100644 --- a/ltt-sessiond/utils.c +++ b/ltt-sessiond/utils.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2011 - David Goulet - * Copyright (C) 2011 - Mathieu Desnoyers + * Mathieu Desnoyers * * 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" /* - * 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) { @@ -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) { @@ -76,9 +73,8 @@ int mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid) } } 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) { @@ -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) { /* - * 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) {