bin/86710: Update bin/ls to have option to cancel -A with super user

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Sep 29 09:50:13 PDT 2005


The following reply was made to PR bin/86710; it has been noted by GNATS.

From: Giorgos Keramidas <keramida at ceid.upatras.gr>
To: Marcus Alves Grando <mnag at freebsd.org>
Cc: FreeBSD-gnats-submit at freebsd.org
Subject: Re: bin/86710: Update bin/ls to have option to cancel -A with super user
Date: Thu, 29 Sep 2005 19:48:33 +0300

 On 2005-09-29 11:50, Marcus Alves Grando <mnag at freebsd.org> wrote:
 > +	/* Root is -A automatically. */
 > +	if (!getuid() && !f_nolistdot)
 > +		f_listdot = 1;
 > +
 
 If you are going to touch this check, then please change it to avoid the
 use of the !condition idiom :)
 
 	if (getuid() == 0 && f_nolistdot == 0)
 		f_listdot = 1;
 


More information about the freebsd-bugs mailing list