All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] sensors-detect path issue under fc5 / 6 -- fix
Date: Wed, 04 Apr 2007 19:34:44 +0000	[thread overview]
Message-ID: <20070404213444.7d120103.khali@linux-fr.org> (raw)
In-Reply-To: <20070304113341.091c3819.khali@linux-fr.org>

On Sun, 4 Mar 2007 11:33:41 +0100, Jean Delvare wrote:
> On Sun, 4 Mar 2007 03:04:42 -0500 (EST), Vince Spinelli wrote:
> > It's a simple one, but it's worth noting.
> > 
> > I'm unawares of other distributions, but under Fedora Core 5 and 6, the
> > i2cdetect command is located in the /usr/sbin directory, not /sbin/ nor
> > /usr/local/sbin.
> 
> That's the case of pretty much all distributions shipping lm-sensors,
> as /usr/local is meant for things added on top of the original
> distribution.
> 
> > As a result, an error message is encountered when running
> > sensors-detect.sh as either root, sudo root, or a normal user.
> 
> There's no such thing as "sensors-detect.sh" in our source package.
> sensors-detect is a perl script.
> 
> If your root user doesn't have /usr/sbin in its $PATH, then your setup
> is seriously broken, I doubt sensors-detect will be the only failing
> tool.
> 
> sensors-detect can no longer be run as non-root, so this case doesn't
> matter.
> 
> The su/sudo case is more problematic though, I can imagine a standard
> user gaining root permissions without getting the $PATH usually
> associated with the root user.
> 
> > The fix is as follows... inside of the sensors-detect.sh script, there's a
> > segment to add directories to path.

I've made a functionally equivalent change to sensors-detect, committed
to our SVN repository. Feel free to give it a try. Hopefully it will
make the packagers happier.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  reply	other threads:[~2007-04-04 19:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-04 10:33 [lm-sensors] sensors-detect path issue under fc5 / 6 -- fix Jean Delvare
2007-04-04 19:34 ` Jean Delvare [this message]
2007-04-04 19:59 ` Ivo Manca

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070404213444.7d120103.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.