2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15: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:
Jean Delvare
2003-08-05 09:08:38 +00:00
parent 9791b06ae5
commit 7c3bb9df01

View File

@@ -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 #
#########################