lkml.org 
[lkml]   [2015]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] ver_linux: module-init-tools.patch
From
On Fri, Oct 2, 2015 at 12:35 PM, Jim Davis <jim.epost@gmail.com> wrote:
> On Fri, Oct 2, 2015 at 12:03 PM, Alexander Kapshuk
>
>>>> +depmod=`whereis depmod | awk '{print $2}'`
>>>

> I suspect it'll be hard to come up with something that's 100%
> foolproof and respects user's choices. Sticking with searching the
> user's $PATH at least won't lead to surprises about which program is
> being run...

Though looking back at your patch, what might work is to look first
for depmod in the user's $PATH and then try whereis only if that
fails. I'm not convinced that's much better than just searching
$PATH, but that at least would go with the user's preference first.

--
Jim


\
 
 \ /
  Last update: 2015-10-02 22:01    [W:0.064 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site