On Sat, Oct 18, 2014 at 5:24 PM, Ingo Schwarze <[email protected]> wrote:
> Index: getent.c
> ===================================================================
> RCS file: /cvs/src/usr.bin/getent/getent.c,v
> retrieving revision 1.6
> diff -u -p -r1.6 getent.c
> --- getent.c    30 Mar 2013 14:03:08 -0000      1.6
> +++ getent.c    19 Oct 2014 00:23:47 -0000
> @@ -270,8 +270,9 @@ hosts(int argc, char *argv[])
>
>         sethostent(1);
>         if (argc == 2) {
> -               while ((he = gethostent()) != NULL)
> -                       hostsprint(he);
> +               fprintf(stderr, "%s: Enumeration not supported on hosts\n",
> +                   __progname);
> +               rv = RV_NOENUM;
>         } else {
>                 for (i = 2; i < argc; i++) {
>                         he = NULL;

ok guenther@

Reply via email to