mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-23 11:54:33 +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 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 #
|
||||
#########################
|
||||
|
||||
Reference in new issue
Block a user