mpage/misc — comment on commit 08eb0373fbf3de30a33273f2d8cae30470da907e
File: report_quota.c line 28
By jstultz:

According to the documentation I read, _PATH_MNTTAB (and _PATH_FSTAB) are both *supposed* to point at /etc/fstab or it's equivalent.

You want _PATH_MOUNTED, which seems to work fine on my Ubuntu machine:

#include
#include
#include

int main(int argc, char **argv)
{
printf("%s\n", _PATH_MNTTAB);
printf("%s\n", _PATH_MOUNTED);
return 0;
}

yields:
/etc/fstab
/etc/mtab