core: typos in comments

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2023-04-04 15:18:00 +02:00
parent acbb504eaf
commit 4a055e5a3e
4 changed files with 14 additions and 15 deletions
+1 -1
View File
@@ -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)
+3 -4
View File
@@ -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)
+8 -8
View File
@@ -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;
+2 -2
View File
@@ -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, "$;'\"");