systemd: Fix the sed adding PID_FS_MAGIC into src/basic/missing_magic.h

Without this trailing backslash only one line (the comment) is added.

Note that udev.xml contains the correct sed.
This commit is contained in:
Xi Ruoyao 2024-06-02 19:45:09 +08:00
parent 464fd24324
commit b3c50e06f6
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -51,7 +51,7 @@
<para>Next, fix compatibility with API headers from linux-6.9 and later:</para>
<screen><userinput remap="pre">sed -i '/DEVMEM_MAGIC 0/{n;n;a \
/* cb12fd8e0dabb9a1c8aef55a6a41e2c255fcdf4b (6.8) */
/* cb12fd8e0dabb9a1c8aef55a6a41e2c255fcdf4b (6.8) */ \
#ifndef PID_FS_MAGIC \
#define PID_FS_MAGIC 0x50494446 \
#endif