Relicence all source and header files included in LGPL code
[lttng-tools.git] / src / common / compat / directory-handle.c
index a790c5b79960d7933efe4221949070698b59eea9..a7e0e78689aadff3b1e478e3b466d2991c5f2f1a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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)
 {
-       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
This page took 0.023617 seconds and 4 git commands to generate.