Bug 480882

Summary: initscripts - missing blank prevents powering off on shutdown
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: notting, 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: 2009-01-21 03:27: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 2009-01-21 03:12:54 UTC
Description of problem:

/etc/rc.d/init.d/halt is missing blank; like that:

--- halt~       2009-01-19 15:07:14.000000000 -0700
+++ halt        2009-01-20 20:00:55.000000000 -0700
@@ -175,6 +175,6 @@ fi
 [ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null
 
 HALTARGS="-d"
-[ "$INIT_HALT" != "HALT"] && HALTARGS="$HALTARGS -p"
+[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"
 
 exec $command $HALTARGS

The net result is that the script chokes with "missing ]" and a machine refuses to power down on "Shutdown".

Version-Release number of selected component (if applicable):
initscripts-8.87-1.x86_64

How reproducible:
always

Comment 1 Bill Nottingham 2009-01-21 03:27:21 UTC

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