Re: Fwd: [PATCH] whereis: removing hard-coded binary paths

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Karel


  thanks for the patch, but I have doubts that your solution is
  acceptable. The current bindirs array contains directories that are
  not in usual $PATH variable, try:

      $ whereis stdlib
     stdlib: /usr/include/stdlib.h

  I think the ideal solution is to add missing directories from PATH to
  the array rather than remove the array at all.


I think '/usr/include' should be in the sourcedirs, instead of the bindirs. I didn't touch the hardcoded paths for man-pages and src-code as I am not really sure which paths are supposed to be searched.
But I can add /usr/include to srcdirs and stdlib.h will again be found.

I can send another patch, and check for the coding style.

Peter
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux