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

Paulo Marques
2004-09-20T11:51:45Z

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