From c9fdeb4a1d62fd93191c5c6deabe9794ac5a7423 Mon Sep 17 00:00:00 2001 From: "Albert S." Date: Sun, 26 May 2024 19:31:14 +0200 Subject: [PATCH] enter_namespaces(): Add missing newline at error messages --- exile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exile.c b/exile.c index f7410a5..d51015e 100644 --- a/exile.c +++ b/exile.c @@ -959,7 +959,7 @@ static int enter_namespaces(int namespace_options, uid_t namespace_uid, gid_t na int fd = open("/proc/self/setgroups", O_WRONLY); if(fd == -1) { - EXILE_LOG_ERROR("Failed to open /proc/self/setgroups for writing"); + EXILE_LOG_ERROR("Failed to open /proc/self/setgroups for writing\n"); return -1; } int writesize = snprintf(buf, sizeof(buf), "deny"); @@ -974,7 +974,7 @@ static int enter_namespaces(int namespace_options, uid_t namespace_uid, gid_t na fd = open("/proc/self/uid_map", O_WRONLY); if(fd == -1) { - EXILE_LOG_ERROR("Failed to open /proc/self/uid_map for writing"); + EXILE_LOG_ERROR("Failed to open /proc/self/uid_map for writing\n"); return -1; } writesize = snprintf(buf, sizeof(buf), "%u %u 1\n", namespace_uid, current_uid); @@ -990,7 +990,7 @@ static int enter_namespaces(int namespace_options, uid_t namespace_uid, gid_t na fd = open("/proc/self/gid_map", O_WRONLY); if(fd == -1) { - EXILE_LOG_ERROR("Failed to open /proc/self/gid_map for writing"); + EXILE_LOG_ERROR("Failed to open /proc/self/gid_map for writing\n"); return -1; } writesize = snprintf(buf, sizeof(buf), "%u %u 1\n", namespace_gid, current_gid);