projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove run-as compat wrapper from internal code
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-registry.c
diff --git
a/src/bin/lttng-sessiond/ust-registry.c
b/src/bin/lttng-sessiond/ust-registry.c
index dea443d94fbb1e74fc9ecffd105cb3bf1fe7b42d..3c3aa91f02ce1b0a4719bdc982af80e22bc3fd8c 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-registry.c
+++ b/
src/bin/lttng-sessiond/ust-registry.c
@@
-89,14
+89,23
@@
static int compare_enums(const struct ust_registry_enum *reg_enum_a,
entries_a = ®_enum_a->entries[i];
entries_b = ®_enum_b->entries[i];
entries_a = ®_enum_a->entries[i];
entries_b = ®_enum_b->entries[i];
- if (entries_a->start
!= entries_b->start
) {
+ if (entries_a->start
.value != entries_b->start.value
) {
ret = -1;
goto end;
}
ret = -1;
goto end;
}
- if (entries_a->end
!= entries_b->end
) {
+ if (entries_a->end
.value != entries_b->end.value
) {
ret = -1;
goto end;
}
ret = -1;
goto end;
}
+ if (entries_a->start.signedness != entries_b->start.signedness) {
+ ret = -1;
+ goto end;
+ }
+ if (entries_a->end.signedness != entries_b->end.signedness) {
+ ret = -1;
+ goto end;
+ }
+
if (strcmp(entries_a->string, entries_b->string)) {
ret = -1;
goto end;
if (strcmp(entries_a->string, entries_b->string)) {
ret = -1;
goto end;
@@
-985,7
+994,7
@@
void ust_registry_session_destroy(struct ust_registry_session *reg)
/*
* Try deleting the directory hierarchy.
*/
/*
* Try deleting the directory hierarchy.
*/
- (void) run_as_r
ecursive_rmdir
(reg->root_shm_path,
+ (void) run_as_r
mdir_recursive
(reg->root_shm_path,
reg->uid, reg->gid);
}
/* Destroy the enum hash table */
reg->uid, reg->gid);
}
/* Destroy the enum hash table */
This page took
0.023149 seconds
and
4
git commands to generate.