Re: [PATCH 01/16] whereis: tell when mandatory option is missing

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

 



On Tue, 24 Feb 2015, Karel Zak wrote:

> On Sun, Feb 22, 2015 at 02:41:31PM +0000, Sami Kerola wrote:
> >  misc-utils/whereis.c | 8 +++++++-
> >  1 file changed, 7 insertions(+), 1 deletion(-)
> 
>  Benno is right, see construct_dirlist_from_argv(), the dir list is
>  terminated by arbitrary option, it checks for '-'.
> 
>  The expected use-case is "<dirlist> <search-restriction> <pattern>",
>  for example:
> 
>     whereis -M /usr/share/man/man1 -m ls

Hi Benno & Karel,

I see, most of the options has to flick the opt_f_missing. Here is updated 
version of the change.

https://github.com/kerolasa/lelux-utiliteetit/commit/ada8f7f0b253a031936519f7953629d701832444

-- 
Sami Kerola
http://www.iki.fi/kerolasa/
--
To unsubscribe from this list: send the line "unsubscribe util-linux" 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