From 7c3bb9df012bc923b96eb9f59ca72db9e5f676ce Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 5 Aug 2003 09:08:38 +0000 Subject: [PATCH] Make sure /sbin is in the user's path. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1939 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 3f8d5622..d1f4b187 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -31,6 +31,11 @@ use strict; use Fcntl; use POSIX; +# Just in case a root user doesn't have /sbin in his/her path for some reason +# (was seen once) +$ENV{PATH} .= '/sbin:' + unless $ENV{PATH} =~ m,(^|:)/sbin/?(:|$),; + ######################### # CONSTANT DECLARATIONS # #########################