summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-08-20 07:00:35 +0000
committerMike Frysinger <vapier@gentoo.org>2006-08-20 07:00:35 +0000
commit8e5aa2e8de95e52d233d35dfa7c8f0cfc8b1795d (patch)
treeaa3a4a6c245bbf2c7a690e32c78b5a00d3ab1c87 /sys-apps/hdparm/files
parentVersion bump #144390 by Conrad Kostecki. (diff)
downloadhistorical-8e5aa2e8de95e52d233d35dfa7c8f0cfc8b1795d.tar.gz
historical-8e5aa2e8de95e52d233d35dfa7c8f0cfc8b1795d.tar.bz2
historical-8e5aa2e8de95e52d233d35dfa7c8f0cfc8b1795d.zip
make sure we force locale to C when checking error messages #144407 by Daniel Pielmeier
Package-Manager: portage-2.1.1_pre5-r2
Diffstat (limited to 'sys-apps/hdparm/files')
-rw-r--r--sys-apps/hdparm/files/hdparm-init-72
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-apps/hdparm/files/hdparm-init-7 b/sys-apps/hdparm/files/hdparm-init-7
index 7f43dfd5098e..72c16ed86532 100644
--- a/sys-apps/hdparm/files/hdparm-init-7
+++ b/sys-apps/hdparm/files/hdparm-init-7
@@ -121,7 +121,7 @@ scan_nondevfs() {
# check that the block device really exists by
# opening it for reading
local errmsg status
- errmsg=$(: 2>&1 <$device)
+ errmsg=$(export LC_ALL=C ; : 2>&1 <$device)
status=$?
if [[ -b $device ]] && \
[[ ${status} == 0 || ${errmsg} == *": No medium found" ]]