chiark / gitweb /
importd: add new bus calls for importing local tar and raw images
[elogind.git] / src / test / test-capability.c
index a362fc6c57b4a735acbebe1007aa7acec90ff3da..f47452ce72502eb620c719d18b8f1b660c485e66 100644 (file)
@@ -17,7 +17,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include <sys/types.h>
 #include <sys/wait.h>
 #include <sys/capability.h>
 #include <sys/socket.h>
@@ -70,7 +69,7 @@ static int setup_tests(void) {
 
         nobody = getpwnam("nobody");
         if (!nobody) {
-                log_error("Could not find nobody user: %m");
+                log_error_errno(errno, "Could not find nobody user: %m");
                 return -EXIT_TEST_SKIP;
         }
         test_uid = nobody->pw_uid;