Bug 32428

Summary: XFree86-xfs-4.0.3-1: warning in post-install script
Product: [Retired] Red Hat Raw Hide Reporter: Olivier Baudron <olivier.baudron>
Component: XFree86Assignee: Mike A. Harris <mharris>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-03-20 21:25:33 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:

Description Olivier Baudron 2001-03-20 21:25:30 UTC
Upgrading XFree86-xfs caused the following warning:

# rpm -Uvh XFree86-xfs-4.0.3-1.i386.rpm
grep: /etc/X11/XF86Config-4: No such file or directory

The problem is in the post-install script:

for config in /etc/X11/XF86Config /etc/X11/XF86Config-4 ; do
	...
	if grep -q "unix/:" $config >& /dev/null && \
	...
done

Through /bin/bash, there would not be any problem, but since rpm uses
/bin/sh, I suggest to use the usual syntax:

	if grep -q "unix/:" $config > /dev/null 2>&1 && \

Comment 1 Bill Nottingham 2001-03-20 22:58:17 UTC
Yup, this should be fixed in -2.