SoW-2019-0002: Dynamic Snapshot
[lttng-tools.git] / src / common / credentials.c
1 /*
2 * Copyright (C) 2020 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License, version 2 only,
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 */
17
18 #include <assert.h>
19 #include <stdbool.h>
20 #include "credentials.h"
21
22 bool lttng_credentials_is_equal(const struct lttng_credentials *a,
23 const struct lttng_credentials *b)
24 {
25 assert(a);
26 assert(b);
27 if ((a->uid != b->uid) || (a->gid != b->gid)) {
28 return false;
29 }
30 return true;
31 };
This page took 0.031346 seconds and 5 git commands to generate.