Bug 198653

Summary: xf86writeConfigFile always writes Files and Module sections
Product: [Fedora] Fedora Reporter: Chris Lumens <clumens>
Component: xorg-x11-serverAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-21 20:49:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to not write out empty sections none

Description Chris Lumens 2006-07-12 15:12:04 UTC
The Files and Module sections are always written out, even if they are empty,
because the printers in xc/programs/Xserver/hw/xfree86/parser/write.c do not
have guards to check for NULL.  Other sections in the config file writer have
these guards.  Attached is a simple, but untested, patch against the gitweb sources.

Comment 1 Chris Lumens 2006-07-12 15:12:04 UTC
Created attachment 132311 [details]
patch to not write out empty sections

Comment 2 Mike A. Harris 2006-07-21 20:49:26 UTC
Patch added to: xorg-x11-server-1.1.1-7