projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Relicence all source and header files included in LGPL code
[lttng-tools.git]
/
src
/
common
/
compat
/
directory-handle.c
diff --git
a/src/common/compat/directory-handle.c
b/src/common/compat/directory-handle.c
index a790c5b79960d7933efe4221949070698b59eea9..a7e0e78689aadff3b1e478e3b466d2991c5f2f1a 100644
(file)
--- a/
src/common/compat/directory-handle.c
+++ b/
src/common/compat/directory-handle.c
@@
-1,7
+1,7
@@
/*
* Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
/*
* Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
- * SPDX-License-Identifier:
GPL-2.0
-only
+ * SPDX-License-Identifier:
LGPL-2.1
-only
*
*/
*
*/
@@
-355,7
+355,12
@@
static
int lttng_directory_handle_rmdir(
const struct lttng_directory_handle *handle, const char *name)
{
int lttng_directory_handle_rmdir(
const struct lttng_directory_handle *handle, const char *name)
{
- return unlinkat(handle->dirfd, name, AT_REMOVEDIR);
+ int ret = unlinkat(handle->dirfd, name, AT_REMOVEDIR);
+ if (ret) {
+ PERROR("Failed to remove directory `%s`", name);
+ }
+
+ return ret;
}
static
}
static
This page took
0.02376 seconds
and
4
git commands to generate.