xserver/hw
liuheng 9b6f72395a config: Preserve section data when parsing duplicate files
Previously, when parsing multiple configuration files containing the same
section names, only the last occurrence of each section would be retained.
Earlier definitions were silently discarded due to unconditional memory
allocation and overwriting of pointers during parsing.

This resulted in incomplete or incorrect configuration state when users
intended to merge or extend configuration through multiple files.

The section parsing functions in Files.c, Flags.c, and Module.c now
accept existing section pointers. These functions allocate new memory only
if the input pointer is NULL, preserving earlier data when re-parsing.

read.c has been updated to detect and pass existing section pointers when
encountering duplicate sections across files, preventing loss of prior content.

With these changes, the parser properly accumulates and merges configuration
data across multiple files, ensuring that all relevant settings are preserved.

Fixes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/467
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2045>
2025-07-19 20:58:11 +00:00
..
kdrive Revert "kdrive: use dixDestroyPixmap() instead of direct driver call" 2025-06-17 20:02:16 +00:00
vfb Revert "vfb: use dixDestroyPixmap() instead of direct driver call" 2025-06-17 20:02:16 +00:00
xfree86 config: Preserve section data when parsing duplicate files 2025-07-19 20:58:11 +00:00
xnest Revert "mi: unexport miWindowExposures()" 2025-06-24 10:52:53 -07:00
xquartz man pages: remove extraneous PP macros 2025-05-31 15:01:49 -07:00
xwayland xwayland/present: Only flip if the window pixmap dimensions match 2025-07-18 14:33:08 +00:00
xwin Revert "xwin: drop duplicate OsVendorVErrorF()" 2025-06-24 23:40:49 +00:00
meson.build meson.build: print a summary of the DDX to build 2025-03-24 03:05:35 +00:00