9fans archive / 2008 / 04 / 344 /    prev next

From: Charles Forsyth <forsyth@ter...>
Subject: Re: [9fans] ftpfs ahould not expose "." and ".." directories
Date: Mon, 28 Apr 2008 11:50:14 +0100

just for completeness, in plan 9 code it also would be
	if(strcmp(".", field[8]) == 0 ...)
etc. not `!strcmp', and indeed it is that way elsewhere in ip/ftpfs.c
similarly, it is usually
	if(p != nil)
		...
not
	if(!p)

there are other guidelines in style(6)