Fixes a bug introduced by
cfea7618f28562c053a1ee194108feaa502081ff.
Before this commit:
mode=1777,size=10%,nr_inodes=400k,uid=
496107520,gid=
496107520,context=,sys.id:sys.role:systemd.nspawn.container.fs:s0,
After this commit:
mode=1777,size=10%,nr_inodes=400k,uid=
496107520,gid=
496107520,context=sys.id:sys.role:systemd.nspawn.container.fs:s0
Fixes #19976.
#if HAVE_SELINUX
if (selinux_apifs_context)
- if (!strextend_with_separator(&buf, ",", "context=\"", selinux_apifs_context, "\""))
+ if (strextendf_with_separator(&buf, ",", "context=\"%s\"", selinux_apifs_context) < 0)
return -ENOMEM;
#endif