Messages in this thread |  | | | Date | Mon, 20 Sep 2004 12:51:23 +0100 | | From | Paulo Marques <> | | Subject | Re: OOM & [OT] util-linux-2.12e |
| |
Andreas Schwab wrote: > DervishD <lkml@dervishd.net> writes: > > >> Hi Andreas :) >> >> * Andreas Schwab <schwab@suse.de> dixit: >> >>>>- fix all broken apps that still rely on mtab. like GNU df(1) >>> >>>df does not rely on /etc/mtab. It relies on getmntent. >> >> Then my GNU df has any problem :??? > > > No, if any then getmntent.
I don't get this. From "man getmntent" it seems that getmntent is just a parser for /etc/mtab, and that you must call "setmntent" with the filename you want to parse.
So if you do "setmntent("/etc/mtab",...)" you're explicitly saying that you want getmntent to use /etc/mtab. This is just a open/read in disguise.
Am I missing something?
-- Paulo Marques - www.grupopie.com
To err is human, but to really foul things up requires a computer. Farmers' Almanac, 1978 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |