Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 1998 20:30:27 +0100
From:      "Philippe Charnier" <charnier@xp11.frmug.org>
To:        cjs@netbsd.org
Cc:        hackers@FreeBSD.ORG, support@bsdi.com
Subject:   Re: tail -F patches
Message-ID:  <199802121930.UAA01693@xp11.frmug.org>

next in thread | raw e-mail | index | archive | help
Hello,

In the patch you posted:
+                         if ((fp = fopen(fname, "r")) == NULL)
+                              err(1, "can't reopen %s: %s",
+                                       fname, strerror(errno));

Err(3) already displays the output of `strerror(errno)', so the following
will suffice:
         err(1, "can't reopen %s", fname); 

-             err(1, "-f option only appropriate for a single file");
+             err(1, "-f and -F options only appropriate for a single file");

No need to use err(3) here because errno is nothing but garbage. Use errx(3)
instead.

Have a nice day.
------                                                            ------ 
Philippe Charnier         charnier@{lirmm.fr,xp11.frmug.org,FreeBSD.org}

    ``a PC not running FreeBSD is like a venusian with no tentacles'' 
------------------------------------------------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802121930.UAA01693>