[PR #11926/c0d3464f backport][stable-12] crypttab: fix option parsing when value contains multiple equal signs (#11929)

crypttab: fix option parsing when value contains multiple equal signs (#11926)

* fix(crypttab): preserve option values containing multiple equal signs

Fixes #4963



* fix(crypttab): add changelog fragment for PR 11926



---------


(cherry picked from commit c0d3464fa7)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
patchback[bot]
2026-04-28 21:27:44 +02:00
committed by GitHub
parent 412a348738
commit 743591cedc
2 changed files with 3 additions and 1 deletions

View File

@@ -281,7 +281,7 @@ class Options(dict):
self.itemlist = []
if opts_string is not None:
for opt in opts_string.split(","):
kv = opt.split("=")
kv = opt.split("=", 1)
if len(kv) > 1:
k, v = (kv[0], kv[1])
else: