From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <73CCEA09-C492-439D-9E8A-AA2BA9CB93DB@ar.aichi-u.ac.jp> References: <73CCEA09-C492-439D-9E8A-AA2BA9CB93DB@ar.aichi-u.ac.jp> Date: Thu, 17 Dec 2015 11:40:55 +0000 Message-ID: From: Peter Hull To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] bug in exportfs Topicbox-Message-UUID: 7a9437e6-ead9-11e9-9d60-3106f5b1d025 On Wed, Dec 16, 2015 at 11:31 PM, arisawa wrote: > It seems cpu command is buggy in -P option. > the sources of the problem is in command option -P of exportfs. I had a look at the manpage for exportfs(4), it says: "For a file to be exported, all lines with a prefix + must match and all those with prefix - must not match." (http://man.9front.org/4/exportfs) So isn't the original code correct according to the manpage? If any of the regexps in 'include' fail to match, the function returns -1, then if any in 'exclude' do match, -1 is returned. > patternfile sample > + /usr/arisawa > + /usr/glenda > - /adm > - /sys/log > - /mail > - /usr/.* > Is this sample invalid - no path could match /usr/arisawa and /usr/glenda at the same time? Pete