summaryrefslogtreecommitdiffstats
path: root/src/shared/generator.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-11 10:37:36 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-11 11:25:15 +0100
commitff0c31bc2722eed528eae6644a104e85ed97f2f1 (patch)
treec01a605e52a302aa15779003c90f4dfaa2a9c2ca /src/shared/generator.c
parentshared/fstab-util: pass through the escape character (diff)
downloadsystemd-ff0c31bc2722eed528eae6644a104e85ed97f2f1.tar.xz
systemd-ff0c31bc2722eed528eae6644a104e85ed97f2f1.zip
shared/fstab-util: teach fstab_filter_options() a mode where all values are returned
Apart from tests, the new argument isn't used anywhere, so there should be no functional change. Note that the two arms of the big conditional are switched, so the diff is artificially inflated. The actual code change is rather small. I dropped the path which extracts ret_value manually, because it wasn't supporting unescaping of the escape character properly.
Diffstat (limited to 'src/shared/generator.c')
-rw-r--r--src/shared/generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/generator.c b/src/shared/generator.c
index 41922d67d8..5b9c432527 100644
--- a/src/shared/generator.c
+++ b/src/shared/generator.c
@@ -215,7 +215,7 @@ int generator_write_timeouts(
r = fstab_filter_options(opts, "comment=systemd.device-timeout\0"
"x-systemd.device-timeout\0",
- NULL, &timeout, filtered);
+ NULL, &timeout, NULL, filtered);
if (r < 0) {
log_warning_errno(r, "Failed to parse fstab options, ignoring: %m");
return 0;