From: Zbigniew Jędrzejewski-Szmek Date: Sat, 1 Apr 2023 14:15:12 +0000 (+0200) Subject: core: typos in comments X-Git-Tag: v254-rc1~813^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a055e5a3e8c8559c326dd4b3e01edbbcc70a86b;p=thirdparty%2Fsystemd.git core: typos in comments --- diff --git a/src/core/dbus-service.c b/src/core/dbus-service.c index a6758e616b1..0f6e3152330 100644 --- a/src/core/dbus-service.c +++ b/src/core/dbus-service.c @@ -723,7 +723,7 @@ int bus_service_set_property( return r; if (u->transient && u->load_state == UNIT_STUB) { - /* This is a transient unit, let's load a little more */ + /* This is a transient unit, let's allow a little more */ r = bus_service_set_transient_property(s, name, message, flags, error); if (r != 0) diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index a9e63b06788..f01e7c7604a 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -2407,10 +2407,9 @@ int bus_unit_set_properties( assert(u); assert(message); - /* We iterate through the array twice. First run we just check - * if all passed data is valid, second run actually applies - * it. This is to implement transaction-like behaviour without - * actually providing full transactions. */ + /* We iterate through the array twice. First run just checks if all passed data is valid, second run + * actually applies it. This implements transaction-like behaviour without actually providing full + * transactions. */ r = sd_bus_message_enter_container(message, 'a', "(sv)"); if (r < 0) diff --git a/src/core/execute.c b/src/core/execute.c index 81e48f12c6b..348222adcca 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -4655,8 +4655,7 @@ static int exec_child( return log_unit_error_errno(unit, r, "Failed to determine $HOME for user: %m"); } - /* If a socket is connected to STDIN/STDOUT/STDERR, we - * must sure to drop O_NONBLOCK */ + /* If a socket is connected to STDIN/STDOUT/STDERR, we must drop O_NONBLOCK */ if (socket_fd >= 0) (void) fd_nonblock(socket_fd, false); @@ -5197,9 +5196,10 @@ static int exec_child( } #endif - /* We repeat the fd closing here, to make sure that nothing is leaked from the PAM modules. Note that we are - * more aggressive this time since socket_fd and the netns and ipcns fds we don't need anymore. We do keep the exec_fd - * however if we have it as we want to keep it open until the final execve(). */ + /* We repeat the fd closing here, to make sure that nothing is leaked from the PAM modules. Note that + * we are more aggressive this time, since we don't need socket_fd and the netns and ipcns fds any + * more. We do keep exec_fd however, if we have it, since we need to keep it open until the final + * execve(). */ r = close_all_fds(keep_fds, n_keep_fds); if (r >= 0) @@ -5221,9 +5221,9 @@ static int exec_child( if (needs_sandboxing) { uint64_t bset; - /* Set the RTPRIO resource limit to 0, but only if nothing else was explicitly - * requested. (Note this is placed after the general resource limit initialization, see - * above, in order to take precedence.) */ + /* Set the RTPRIO resource limit to 0, but only if nothing else was explicitly requested. + * (Note this is placed after the general resource limit initialization, see above, in order + * to take precedence.) */ if (context->restrict_realtime && !context->rlimit[RLIMIT_RTPRIO]) { if (setrlimit(RLIMIT_RTPRIO, &RLIMIT_MAKE_CONST(0)) < 0) { *exit_status = EXIT_LIMITS; diff --git a/src/core/unit.c b/src/core/unit.c index 642db41e41b..ce7b5a177cd 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -4333,8 +4333,8 @@ char* unit_escape_setting(const char *s, UnitWriteFlags flags, char **buf) { s = t; } - /* We either do c-escaping or shell-escaping, to additionally escape characters that we parse for - * ExecStart= and friend, i.e. '$' and ';' and quotes. */ + /* We either do C-escaping or shell-escaping, to additionally escape characters that we parse for + * ExecStart= and friends, i.e. '$' and ';' and quotes. */ if (flags & UNIT_ESCAPE_EXEC_SYNTAX) { char *t2 = shell_escape(s, "$;'\"");