lkml.org 
[lkml]   [2004]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.104 / U:0.604 seconds]
©2003-2014 Jasper Spaans. Advertise on this site