Handle cases where capability rights are not provided.

Reported by:	kib
The fget() function now takes pointer to cap_rights_t, so change 0 to NULL.
Correct two comments.