Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Feb 2002 19:56:29 +1100
From:      "Tim J. Robbins" <tim@robbins.dropbear.id.au>
To:        Chuck Rouillard <chuckr@opus.sandiegoca.ncr.com>
Cc:        freebsd-standards@FreeBSD.ORG
Subject:   Re: pathchk - review
Message-ID:  <20020206195629.A37672@descent.robbins.dropbear.id.au>
In-Reply-To: <20020205232519.N7805-101000@opus.sandiegoca.ncr.com>; from chuckr@opus.sandiegoca.ncr.com on Tue, Feb 05, 2002 at 11:54:26PM -0800
References:  <20020129210829.GC50337@madman.nectar.cc> <20020205232519.N7805-101000@opus.sandiegoca.ncr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 05, 2002 at 11:54:26PM -0800, Chuck Rouillard wrote:

> A revised `pathchk' is being submitted for review.

In pathchk.1, it'd be good to change
	.Pp
	.Nm pathchk
	exits 0 on success, 1 if an error occurred.
to:
	.Sh DIAGNOSTICS
	.Ex -std

There is a typo here, should be _POSIX_NAME_MAX:
	The
	.Ar pathname
	contains a path component longer than the maximum _POXIX_NAME_MAX.

mdoc(7) recommends the SEE ALSO section be alphabetised.

In pathchk.c, I think it'd be better to use the warn and err family of
functions instead of fprintf and perror ("Use err(3) or warn(3), do not roll
your own.")

The \n should probably be removed here, since it is later added by fprintf
in usage():
	const char *pathchkhelp = "usage: pathchk [-p] path ...\n";

The lines that say *path = NULL; should be *path = '\0';

Other than those few nits, it looks fine.


Tim

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




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