mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-03 01:17:45 +03:00
tree-wide: remove consecutive duplicate words in comments
This commit is contained in:
parent
5076f4219e
commit
629ff674ac
@ -333,7 +333,7 @@ int cunescape_length_with_prefix(const char *s, size_t length, const char *prefi
|
||||
assert(remaining > 0);
|
||||
|
||||
if (*f != '\\') {
|
||||
/* A literal literal, copy verbatim */
|
||||
/* A literal, copy verbatim */
|
||||
*(t++) = *f;
|
||||
continue;
|
||||
}
|
||||
|
@ -467,7 +467,7 @@ bool in_initrd(void) {
|
||||
* 2. the root file system must be a memory file system
|
||||
*
|
||||
* The second check is extra paranoia, since misdetecting an
|
||||
* initrd can have bad bad consequences due the initrd
|
||||
* initrd can have bad consequences due the initrd
|
||||
* emptying when transititioning to the main systemd.
|
||||
*/
|
||||
|
||||
|
@ -233,7 +233,7 @@ static int pick_uid(const char *name, uid_t *ret_uid) {
|
||||
if (st.st_nlink > 0)
|
||||
break;
|
||||
|
||||
/* Oh, bummer, we got got the lock, but the file was unlinked between the time we opened it and
|
||||
/* Oh, bummer, we got the lock, but the file was unlinked between the time we opened it and
|
||||
* got the lock. Close it, and try again. */
|
||||
lock_fd = safe_close(lock_fd);
|
||||
}
|
||||
|
@ -2207,7 +2207,7 @@ static int exec_child(
|
||||
return r;
|
||||
}
|
||||
|
||||
/* Note that we don't set $HOME or $SHELL if they are are not particularly enlightening anyway
|
||||
/* Note that we don't set $HOME or $SHELL if they are not particularly enlightening anyway
|
||||
* (i.e. are "/" or "/bin/nologin"). */
|
||||
}
|
||||
|
||||
|
@ -278,7 +278,7 @@ static int set_hostname(sd_bus *bus, char **args, unsigned n) {
|
||||
/* Now that we set the pretty hostname, let's clean up the parameter and use that as static
|
||||
* hostname. If the hostname was already valid as static hostname, this will only chop off the trailing
|
||||
* dot if there is one. If it was not valid, then it will be made fully valid by truncating, dropping
|
||||
* multiple dots, and and dropping weird chars. Note that we clean the name up only if we also are
|
||||
* multiple dots, and dropping weird chars. Note that we clean the name up only if we also are
|
||||
* supposed to set the pretty name. If the pretty name is not being set we assume the user knows what
|
||||
* he does and pass the name as-is. */
|
||||
h = strdup(hostname);
|
||||
|
@ -611,7 +611,7 @@ static int session_stop_scope(Session *s, bool force) {
|
||||
return 0;
|
||||
|
||||
/* Let's always abandon the scope first. This tells systemd that we are not interested anymore, and everything
|
||||
* that is left in in the scope is "left-over". Informing systemd about this has the benefit that it will log
|
||||
* that is left in the scope is "left-over". Informing systemd about this has the benefit that it will log
|
||||
* when killing any processes left after this point. */
|
||||
r = manager_abandon_scope(s->manager, s->scope, &error);
|
||||
if (r < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user