DragonFly BSD
DragonFly submit List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [PATCH] libexec/fingerd WARNS=6 cleanup


From: "Liam J. Foy" <liamfoy@xxxxxxxxxxxxx>
Date: Sat, 30 Apr 2005 12:50:51 +0100

Hello Joe!

> +			if (secure && ap == &av[3])
> +				err(1, "must provide username");
>  			break;

err() will print the error message with errno. Of course, errno
is not set here. This will lead to an invalid err message. You
really want to use errx() which will not use errno.

> +		if (secure && strchr(*ap, '@')) 
> +			err(1, "forwarding service denied");
>  

Cheers,
-- 
Liam J. Foy
liamfoy@xxxxxxxxxxxxx
http://www.bsd-systems.co.uk



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