mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-02 15:25:38 +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:
@@ -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