Bug 169423

Summary: initscripts - a typo is really messing up networks
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
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: 2005-09-28 17:49:21 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 Michal Jaegermann 2005-09-28 07:14:08 UTC
Description of problem:

An obvious typo in /etc/sysconfig/network-scripts/network-functions (here)

@@ -220,7 +220,7 @@
     hostname $1
     if ! grep search /etc/resolv.conf >/dev/null 2>&1; then
 	domain=`echo $1 | sed 's/^[^\.]*\.//'`
-	if [ -n "$domain" ]; thenb
+	if [ -n "$domain" ]; then
 		rsctmp=`mktemp /tmp/XXXXXX`;
 		cat /etc/resolv.conf > $rsctmp
 		echo "search $domain" >> $rsctmp

really makes a mincemeat from  networking.  On startup, but even worse
on shutdown.

Version-Release number of selected component (if applicable):
initscripts-8.15-1

Comment 1 Bill Nottingham 2005-09-28 17:49:21 UTC

*** This bug has been marked as a duplicate of 169359 ***