projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56df2f6
)
core/main: also check the argument terminator
author
Mike Yuan
<me@yhndnzj.com>
Mon, 3 Apr 2023 10:42:39 +0000
(18:42 +0800)
committer
Luca Boccassi
<luca.boccassi@gmail.com>
Mon, 3 Apr 2023 15:04:35 +0000
(16:04 +0100)
For future-proof reasons, in case we will add
another option that starts with --deserialize.
Addresses https://github.com/systemd/systemd/commit/
4f44d2c4f76922a4f48dd4473e6abaca40d7e555
#r107285603
src/core/main.c
patch
|
blob
|
history
diff --git
a/src/core/main.c
b/src/core/main.c
index bcc5e15a789ed144392e142fd12d1e5c2663d30c..2cd2da7284853d39e8abab79f6836fd780e6d7ef 100644
(file)
--- a/
src/core/main.c
+++ b/
src/core/main.c
@@
-2744,7
+2744,7
@@
static bool early_skip_setup_check(int argc, char *argv[]) {
for (int i = 1; i < argc; i++)
if (streq(argv[i], "--switched-root"))
return false; /* If we switched root, don't skip the setup. */
- else if (startswith(argv[i], "--deserialize"))
+ else if (startswith(argv[i], "--deserialize
=") || streq(argv[i], "--deserialize
"))
found_deserialize = true;
return found_deserialize; /* When we are deserializing, then we are reexecuting, hence avoid the extensive setup */