mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-13 17:00:15 +00:00
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
This commit is contained in:
1 parent
9791b06ae5
commit
7c3bb9df01
1 file changed
+5
@@ -31,6 +31,11 @@ use strict;
|
|||||||
use Fcntl;
|
use Fcntl;
|
||||||
use POSIX;
|
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 #
|
# CONSTANT DECLARATIONS #
|
||||||
#########################
|
#########################
|
||||||
|
|||||||
Reference in new issue
Block a user