Re: OOM & [OT] util-linux-2.12e

From: Paulo Marques
Date: Mon Sep 20 2004 - 06:53:50 EST


Andreas Schwab wrote:
DervishD <lkml@xxxxxxxxxxxx> writes:


Hi Andreas :)

* Andreas Schwab <schwab@xxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/