update_flash is /bin/sh but contains bash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
powerpc-ibm-utils (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
$ sudo update_flash
/usr/sbin/
update_flash: Must be root to execute this command.
The fix is fairly straight forward:
$ for f in /usr/sbin/
--- /usr/sbin/
+++ /usr/sbin/
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Copyright (c) 2013 International Business Machines
# Common Public License Version 1.0 (see COPYRIGHT)
#
--- /usr/sbin/
+++ /usr/sbin/
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Copyright (c) 2003, 2004, 2008 International Business Machines
# Common Public License Version 1.0 (see COPYRIGHT)
#
@@ -418,7 +418,7 @@
if [ ! -r "$UPDATE_FLASH_NV" ]; then
fi
- /bin/sh $UPDATE_FLASH_NV $@
+ /bin/bash $UPDATE_FLASH_NV $@
exit $?
esac
The one questionable change there is to still invoke UPDATE_FLASH_NV as '/bin/<something>' rather than expecting it to be executable and letting its #! do the work.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: powerpc-ibm-utils 1.2.20-1
ProcVersionSign
Uname: Linux 3.13.0-35-generic ppc64le
ApportVersion: 2.14.1-0ubuntu3.4
Architecture: ppc64el
Date: Fri Sep 19 14:22:39 2014
ProcEnviron:
TERM=screen
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: powerpc-ibm-utils
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in powerpc-ibm-utils (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Confirmed |