On Wed, Dec 16, 2015 at 11:31 PM, arisawa <aris...@ar.aichi-u.ac.jp> 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