From 21413c415789da39c7ccd2277e9ea4034263d397 Mon Sep 17 00:00:00 2001 From: Robert Swiecki Date: Fri, 28 Jun 2019 19:08:21 +0200 Subject: [PATCH] user: typo --- user.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user.cc b/user.cc index 3acf3a6..041093a 100644 --- a/user.cc +++ b/user.cc @@ -88,7 +88,7 @@ static bool setGroupsDeny(nsjconf_t* nsjconf, pid_t pid) { char fname[PATH_MAX]; snprintf(fname, sizeof(fname), "/proc/%d/setgroups", pid); - const char* denystr = "deny"; + const char* const denystr = "deny"; if (!util::writeBufToFile(fname, denystr, strlen(denystr), O_WRONLY | O_CLOEXEC)) { LOG_E("util::writeBufToFile('%s', '%s') failed", fname, denystr); return false; @@ -263,7 +263,7 @@ bool initNsFromChild(nsjconf_t* nsjconf) { LOG_D("setgroups(%lu, %s)", groups.size(), groupsString.c_str()); if (setgroups(groups.size(), groups.data()) == -1) { - /* Indicate errror if specific groups were requested */ + /* Indicate error if specific groups were requested */ if (groups.size() > 0) { PLOG_E("setgroups(%lu, %s) failed", groups.size(), groupsString.c_str()); return false;